6 #ifndef UTILS_STRONG_OPTIONAL_TYPE_H 7 #define UTILS_STRONG_OPTIONAL_TYPE_H 11 #include <Utils/StrongType.h> 21 template <
typename ValueType,
typename PhantomType>
25 using OptionalValueType = std::optional<ValueType>;
39 const ValueType &
Value()
const {
return this->
value_.value(); }
Template class implementation of a Named Strong Type.
Definition: StrongType.h:28
std::optional specialization of the Strong type pattern.
Definition: StrongOptionalType.h:22
std::optional< ValueType > value_
The actual underlying value.
Definition: StrongType.h:63
General namespace for utilities.
Definition: BulletConversions.h:9
bool HasValue() const
Proxy function to access the underlying optional's has_value() function.
Definition: StrongOptionalType.h:37
const ValueType & Value() const
Proxy function to access the underlying optional's value() function.
Definition: StrongOptionalType.h:39