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

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
Prev Up HomeNext

std::experimental::unexpected<E> try_operation_return_as(std::experimental::expected<T, E>)

This implementation of try_operation_return_as(expr) returns an unexpected for any expected input. This allows the use of functions returning std::experimental::expected<T, E> in BOOST_OUTCOME_TRY(...).

Requires: Always available.

Namespace: BOOST_OUTCOME_V2_NAMESPACE

Header: <boost/outcome/try.hpp>

Last revised: January 21, 2019 at 18:00:41 UTC


Prev Up HomeNext