thrust::system::system_category
Defined in thrust/system/error_code.h
-
inline const error_category &thrust::system::system_category()
If the argument
ev
corresponds to a POSIXerrno
valueposv
, 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
equivalent
virtual functions shall behave as specified for classerror_category
. The object’sname
virtual function shall return a pointer to the string"system"
. The object’sdefault_error_condition
virtual function shall behave as follows:- Returns
A reference to an object of a type derived from class
error_category
.