Boost C++ Libraries

PrevUpHomeNext

Type definition result

result — The non-throwing result shape of Boost.Taar: a T or a failure.

Synopsis

// In header: <boost/taar/core/error.hpp>


template<typename T> 
using result = boost::system::result< T, failure >;

Description

Accessing value() on a failed result throws boost::taar::exception carrying the failure (through the ADL hook throw_exception_from_error). Construct a failed result explicitly: return failure {error::argument_not_found};.


PrevUpHomeNext