Class thrust::system::error_category
#include <thrust/system/error_code.h>
class thrust::system::error_category { public: virtual ~error_category();
virtual const char * name() const = 0;
virtual error_condition default_error_condition(int ev) const;
virtual bool equivalent(int code, const error_condition & condition) const;
virtual bool equivalent(const error_code & code, int condition) const;
virtual std::string message(int ev) const = 0;
bool operator==(const error_category & rhs) const;
bool operator!=(const error_category & rhs) const;
bool operator<(const error_category & rhs) const; };
Member Functions
Function thrust::system::error_category::~error_category
virtual ~error_category();
Destructor does nothing.
Function thrust::system::error_category::name
virtual const char * name() const = 0;
Returns: A string naming the error category.
Function thrust::system::error_category::default_error_condition
virtual error_condition default_error_condition(int ev) const;
Returns: error_condition(ev, *this)
.
Function thrust::system::error_category::equivalent
virtual bool equivalent(int code, const error_condition & condition) const;
Returns: default_error_condition(code) == condition
Function thrust::system::error_category::equivalent
virtual bool equivalent(const error_code & code, int condition) const;
Returns: *this == code.category() && code.value() == condition
Function thrust::system::error_category::message
virtual std::string message(int ev) const = 0;
Returns: A string that describes the error condition denoted by ev
.
Function thrust::system::error_category::operator==
bool operator==(const error_category & rhs) const;
Returns: *this == &rhs
Function thrust::system::error_category::operator!=
bool operator!=(const error_category & rhs) const;
Returns: !(*this == rhs)
Function thrust::system::error_category::operator<
bool operator<(const error_category & rhs) const;
Note: less
provides a total ordering for pointers.
Returns: less<const error_category*>()(this, &rhs)