thrust::system::make_error_code

Defined in thrust/system/error_code.h

inline error_code thrust::system::make_error_code(errc::errc_t e)
Returns

error_code(static_cast<int>(e), generic_category())