2
0
mirror of https://github.com/boostorg/leaf.git synced 2026-02-20 14:52:14 +00:00
Files
leaf/doc/synopses/error.adoc
2019-01-15 18:10:04 -08:00

39 lines
916 B
Plaintext

.#include <boost/leaf/error.hpp>
[source,c++]
----
namespace boost { namespace leaf {
class error_id;
template <class... E>
error_id new_error( E && ... e ) noexcept;
error_id next_error() noexcept;
error_id last_error() noexcept;
class error_id
{
public:
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>> | <<new_error>> | <<next_error>> | <<last_error>> | <<propagate>> | <<operator_eq-error_id>> | <<operator_neq-error_id>> | <<operator_shl-error_id>> | <<is_error_type>>