thrust::system::system_category
Defined in thrust/system/error_code.h
-
inline const error_category &thrust::system::system_category()
If the argument
evcorresponds to a POSIXerrnovalueposv, the function shall returnerror_condition(ev,generic_category()). Otherwise, the function shall returnerror_condition(ev,system_category()). What constitutes correspondence for any given operating system is unspecified.Note
The object’s
equivalentvirtual functions shall behave as specified for classerror_category. The object’snamevirtual function shall return a pointer to the string"system". The object’sdefault_error_conditionvirtual function shall behave as follows:- Returns
A reference to an object of a type derived from class
error_category.