2
0
mirror of https://github.com/boostorg/leaf.git synced 2026-02-15 01:02:13 +00:00
Files
leaf/doc/synopses/error.adoc
2019-01-21 09:46:58 -08:00

43 lines
1.0 KiB
Plaintext

.#include <boost/leaf/error.hpp>
[source,c++]
----
namespace boost { namespace leaf {
class error_id;
error_id success() noexcept;
template <class... E>
error_id new_error( E && ... e ) noexcept;
error_id next_error() noexcept;
error_id last_error() noexcept;
class error_id
{
public:
explicit operator bool() const noexcept;
template <class... E>
error_id propagate( E && ... e ) const noexcept;
friend bool operator==( error_id const & e1, error_id const & e2 ) noexcept;
friend bool operator!=( error_id const & e1, error_id const & e2 ) noexcept;
friend std::ostream & operator<<( std::ostream & os, error_id const & e );
};
template <class T>
struct is_error_type
{
static constexpr bool value = <<unspecified>>;
};
} }
----
[.text-right]
<<error_id>> | <<success>> | <<new_error>> | <<next_error>> | <<last_error>> | <<propagate>> | <<error_id::operator_bool>> | <<operator_eq-error_id>> | <<operator_neq-error_id>> | <<operator_shl-error_id>> | <<is_error_type>>