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 ad6398bcfe.
Prev Up HomeNext

auto as_failure() &&

Return the output from free function auto failure(T &&, ...) containing a move from any errored state, thus leaving the result’s error value in a moved-from state. Depending on the choice of error_type, this function may therefore be destructive. The error state is accessed using error_type &&assume_error() && noexcept .

Requires: Always available.

Complexity: Whatever that of error_type’s move constructor is.

Guarantees: None.

Last revised: January 24, 2019 at 01:15:16 UTC


Prev Up HomeNext