W3cubDocs

/C++

std::error_condition::assign

void assign( int val, const error_category& cat ) noexcept;
(since C++11)

Assigns contents to an error condition. Sets the error code to val and error category to cat.

Parameters

val - error code
cat - error category

Return value

(none).

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/error/error_condition/assign