(limited) std::optional replacement (until we upgrade to C++17)
More...
#include <Optional.h>
template<typename Value>
class Optional< Value >
Definition at line 28 of file Optional.h.
◆ Optional() [1/2]
template<typename Value >
◆ Optional() [2/2]
template<typename Value >
◆ has_value()
template<typename Value >
constexpr bool Optional< Value >::has_value |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ operator bool()
template<typename Value >
constexpr Optional< Value >::operator bool |
( |
| ) |
const |
|
inlineexplicitconstexprnoexcept |
◆ operator=()
template<typename Value >
template<class Other = Value>
◆ value()
template<typename Value >
const Value& Optional< Value >::value |
( |
| ) |
const & |
|
inline |
◆ value_or()
template<typename Value >
template<class Other >
constexpr Value Optional< Value >::value_or |
( |
Other && |
defaultValue | ) |
const & |
|
inlineconstexpr |
◆ hasValue_
template<typename Value >
◆ value_
template<typename Value >
The documentation for this class was generated from the following files: