22 General utilities library [utilities]

22.8 Expected objects [expected]

22.8.3 Class template unexpected [expected.unexpected]

22.8.3.3 Observers [expected.un.obs]

constexpr const E& value() const & noexcept; constexpr E& value() & noexcept;
Returns: val.
constexpr E&& value() && noexcept; constexpr const E&& value() const && noexcept;
Returns: std​::​move(val).