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 a snapshot of the develop branch, built from commit f59bfc8c1f.
Prev Up HomeNext

basic_result(const failure_type<T> &)

Implicit error-from-failure-type-sugar copy constructor used to disambiguate the construction of the error type. Note that if T = void, error_type will be default constructed. Calls void on_result_copy_construction(T *, U &&) noexcept with this and const failure_type<T> &.

Requires: predicate::enable_make_error_code_compatible_conversion<void, T, void> is true, or T is void.

Complexity: Same as for the error_type constructor which accepts T, or the error_type default constructor if T is void. Constexpr, triviality and noexcept of underlying operations is propagated.

Last revised: December 17, 2020 at 11:27:06 UTC


Prev Up HomeNext