Returns a reference to the stored value.

Synopses

Declared in <beman/optional/optional.hpp>

Returns a reference to the stored value.

constexpr
T&
value() &;

Returns a reference to the stored value.

constexpr
T const&
value() const &;

Returns a reference to the stored value.

constexpr
T&&
value() &&;

Return Value

  • T&

  • const T&

  • T&&

Created with MrDocs