共用方式為


operator== (<system_error>)

測試,如果在運算子左方的物件等於右邊的物件。

bool operator==(const error_code& _Left, const error_condition& _Right);
bool operator==(const error_condition& _Left, const error_code& _Right);

參數

參數

說明

_Left

為要測試是否相等的物件。

_Right

為要測試是否相等的物件。

傳回值

true ,如果物件相等; false ,如果物件不相等。

備註

這個函式會傳回 _Left.category() == _Right.category() && _Left.value() == _Right.value()。

需求

標頭<系統錯誤>

命名空間: std

請參閱

參考

<system_error>