Add doc + small unittest

pull/4715/head
Kim Kulling 2022-09-07 21:25:46 +02:00
parent 80ae9afe4e
commit 362ff08855
2 changed files with 3 additions and 1 deletions

View File

@ -63,7 +63,7 @@ struct Maybe {
}
/// @brief Will assign a value.
/// @param v The enw valid value.
/// @param v The new valid value.
void Set(T &v) {
ai_assert(!_valid);
@ -79,6 +79,7 @@ struct Maybe {
}
Maybe &operator&() = delete;
Maybe(const Maybe &) = delete;
private:
T _val;

View File

@ -89,6 +89,7 @@ SET( COMMON
unit/utProfiler.cpp
unit/utSharedPPData.cpp
unit/utStringUtils.cpp
unit/Common/utMaybe.cpp
unit/Common/utMesh.cpp
unit/Common/utStandardShapes.cpp
unit/Common/uiScene.cpp