共用方式為


operator< (<system_error>)

測試物件是否小於傳入的物件以進行比較。

template<class _Enum> inline bool operator<(
    _Enum _Left,
    typename enable_if<is_error_code_enum<_Enum>::value,
    const error_code&>::type _Right);
template<class _Enum> inline bool operator<(
    typename enable_if<is_error_code_enum<_Enum>::value,
    const error_code&>::type _Left, _Enum _Right);
template<class _Enum> inline bool operator<(
    _Enum _Left,
    typename enable_if<is_error_condition_enum<_Enum>::value,
    const error_condition&>::type _Right);
template<class _Enum> inline bool operator<(
    typename enable_if<is_error_condition_enum<_Enum>::value,
    const error_condition&>::type _Left, _Enum _Right);

參數

參數

描述

_Left

要比較的物件。

_Right

要比較的物件。

傳回值

如果傳入 _Left 的物件小於傳入 _Right 的物件,則為 true,否則為 false

備註

這個功能測試錯誤順序。

需求

標頭:<system_error>

命名空間: std

請參閱

參考

<system_error>