std::experimental::optional<T>::value
From cppreference.com
constexpr const T& value() const; |
(library fundamentals TS) | |
T& value(); |
(library fundamentals TS) | |
Returns the contained value.
Contents |
Parameters
(none)
Return value
A reference to the contained value.
Exceptions
std::bad_optional_access if *this is in disengaged state.
See also
returns the contained value if available, another value otherwise (public member function) |