35 #ifndef optionalData_H 36 #define optionalData_H 96 value_(
std::move(val))
123 return good_ ? value_ : deflt;
130 explicit operator bool() const
noexcept 158 value_ = std::move(val);
optionalData< T > & operator=(const optionalData< T > &)=default
Copy assignment.
optionalData()
Default construct.
T & value() noexcept
Access to the value.
bool has_value() const noexcept
True if it has a value.
const T & operator*() const noexcept
Access the value.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
A simplified version of std::optional (c++17), with much simpler construction semantics.
const T & value_or(const T &deflt) const
Return value or default.