Boost C++ Libraries 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 to view this page for the latest version.
Prev Up HomeNext

explicit basic_result(concepts::value_or_error<T, E> &&)

Explicit converting constructor from concepts::value_or_error<T, E> concept matching types. Delegates to the basic_result move constructor.

Requires: convert::value_or_error<T, U> has an available call operator, and if the input is a basic_result or basic_outcome, then convert::value_or_error<> has enabled those inputs for that convert::value_or_error<> specialisation.

Complexity: Same as for the copy or move constructor from the input’s .value() or .error() respectively. Constexpr, triviality and noexcept of underlying operations is propagated.

Guarantees: If an exception is thrown during the operation, the object is left in a partially completed state, as per the normal rules for the same operation on a struct.

Last revised: December 15, 2020 at 12:22:39 UTC

Prev Up HomeNext