thrust::system::generic_category

Defined in thrust/system/error_code.h

inline const error_category &thrust::system::generic_category()

Note

The object’s default_error_condition and equivalent virtual functions shall behave as specified for the class error_category. The object’s name virtual function shall return a pointer to the string "generic".

Returns

A reference to an object of a type derived from class error_category.