Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

Prev Up HomeNext

decltype(auto) try_operation_extract_value(X)

This default implementation returns whatever the .assume_value() or .value() member functions return, preferentially choosing the former where both are available.

Requires: That the expression std::declval<T>().assume_value() and/or std::declval<T>().value() is a valid expression.

Namespace: BOOST_OUTCOME_V2_NAMESPACE

Header: <boost/outcome/try.hpp>

Last revised: June 20, 2019 at 11:14:48 +0100


Prev Up HomeNext