try_operation_return_as(expr)

A customisable converter of ValueOrError<T, E> concept matching types to a returnable failure type.

Overridable: Argument dependent lookup.

Default: A number of implementations are provided by default:

  1. try_operation_return_as(T &&) which requires T to provide an .as_failure() member function in order to be available. This is selected for all basic_result and basic_outcome types. See "/home/travis/build/ned14/outcome/doc/src/content/reference/converters/try_operation_return_as.md:12:198": API reference page for 'auto try_operation_return_as(T &&)' not found, please use an identifier wholly contained in a page title API NOT FOUND IN DOCS auto try_operation_return_as(T &&) .

  2. Copy and move editions of try_operation_return_as(std::experimental::expected<T, E>) which return a std::experimental::unexpected<E> for the input’s .error() member function. See "/home/travis/build/ned14/outcome/doc/src/content/reference/converters/try_operation_return_as.md:14:189": API reference page for 'std::experimental::unexpected<E> try_operation_return_as(std::experimental::expected<T, E>)' not found, please use an identifier wholly contained in a page title API NOT FOUND IN DOCS std::experimental::unexpected<E> try_operation_return_as(std::experimental::expected<T, E>) .

Namespace: OUTCOME_V2_NAMESPACE

Header: <outcome/try.hpp>