beman::optional::optional::value

Returns a reference to the stored value.

Synopsis

Declared in <beman/optional/optional.hpp>
constexpr
T&
value() &;


Description

Returns the contained value if there is one, otherwise throws bad_optional_access

Return Value

T&

Created with MrDocs