operator< (<system_error>)
如果对象与用于比较,传递的对象小于测试。
template<class _Enum> inline bool operator<(
_Enum _Left,
typename tr1::enable_if<is_error_code_enum<_Enum>::value,
const error_code&>::type _Right);
template<class _Enum> inline bool operator<(
typename tr1::enable_if<is_error_code_enum<_Enum>::value,
const error_code&>::type _Left, _Enum _Right);
template<class _Enum> inline bool operator<(
_Enum _Left,
typename tr1::enable_if<is_error_condition_enum<_Enum>::value,
const error_condition&>::type _Right);
template<class _Enum> inline bool operator<(
typename tr1::enable_if<is_error_condition_enum<_Enum>::value,
const error_condition&>::type _Left, _Enum _Right);
参数
Parameter |
说明 |
---|---|
_Left |
要比较的对象。 |
_Right |
要比较的对象。 |
返回值
true,如果在 _Left 传递的对象比在 _Right传递的对象小于;否则,false。
备注
此函数可测试一个错误序列。
要求
标头: <system_error>
命名空间: std