mirror of
https://github.com/boostorg/leaf.git
synced 2026-02-01 08:32:14 +00:00
37 lines
880 B
Plaintext
37 lines
880 B
Plaintext
.#include <boost/leaf/error.hpp>
|
|
[source,c++]
|
|
----
|
|
namespace boost { namespace leaf {
|
|
|
|
class error
|
|
{
|
|
public:
|
|
|
|
template <class... E>
|
|
explicit error( E && ... e ) noexcept:
|
|
|
|
template <class... E>
|
|
error propagate( E && ... e ) const noexcept;
|
|
|
|
friend bool operator==( error const & e1, error const & e2 ) noexcept;
|
|
friend bool operator!=( error const & e1, error const & e2 ) noexcept;
|
|
|
|
friend std::ostream & operator<<( std::ostream & os, error const & e )
|
|
};
|
|
|
|
error next_error_value() noexcept;
|
|
|
|
error last_error_value() noexcept;
|
|
|
|
template <class T>
|
|
struct is_error_type
|
|
{
|
|
static constexpr bool value = <<unspecified>>;
|
|
};
|
|
|
|
} }
|
|
----
|
|
|
|
[.text-right]
|
|
`<<error,error>>` | <<error::error>> | <<error::propagate>> | <<operator_eq-error>> | <<operator_neq-error>> | <<operator_shl-error>> | <<next_error_value>> | <<last_error_value>>
|