Add doc + small unittest
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user