cppreference.com
建立賬戶
登入
名稱空間
頁面
討論
變體
檢視
檢視
編輯
歷史
操作
std::error_condition::
category
來自 cppreference.com
<
cpp
|
錯誤
|
錯誤條件
C++
編譯器支援
自由(freestanding)與宿主(hosted)
語言
標準庫
標準庫標頭檔案
具名要求
特性測試宏
(C++20)
語言支援庫
概念庫
(C++20)
診斷庫
記憶體管理庫
超程式設計庫
(C++11)
通用工具庫
容器庫
迭代器庫
範圍庫
(C++20)
演算法庫
字串庫
文字處理庫
數值庫
日期和時間庫
輸入/輸出庫
檔案系統庫
(C++17)
併發支援庫
(C++11)
執行控制庫
(C++26)
技術規範
符號索引
外部庫
[編輯]
工具庫
語言支援
型別支援
(基本型別、RTTI)
庫特性測試宏
(C++20)
程式工具
變參函式
initializer_list
(C++11)
is_constant_evaluated
(C++20)
is_within_lifetime
(C++26)
source_location
(C++20)
協程支援
(C++20)
契約支援
(C++26)
三路比較
three_way_comparable
three_way_comparable_with
(C++20)
(C++20)
strong_ordering
(C++20)
weak_ordering
(C++20)
partial_ordering
(C++20)
common_comparison_category
(C++20)
compare_three_way_result
(C++20)
compare_three_way
(C++20)
strong_order
(C++20)
weak_order
(C++20)
partial_order
(C++20)
compare_strong_order_fallback
(C++20)
compare_weak_order_fallback
(C++20)
compare_partial_order_fallback
(C++20)
is_eq
is_lt
is_lteq
(C++20)
(C++20)
(C++20)
is_neq
is_gt
is_gteq
(C++20)
(C++20)
(C++20)
通用工具
函式物件
位操作
(C++20)
bitset
hash
(C++11)
關係運算符
(C++20 中棄用)
rel_ops::operator!=
rel_ops::operator>
rel_ops::operator<=
rel_ops::operator>=
整數比較函式
cmp_equal
cmp_less
cmp_less_than
(C++20)
(C++20)
(C++20)
cmp_not_equal
cmp_greater
cmp_greater_than
(C++20)
(C++20)
(C++20)
in_range
(C++20)
交換
與
型別操作
swap
ranges::swap
(C++20)
exchange
(C++14)
declval
(C++11)
to_underlying
(C++23)
forward
(C++11)
forward_like
(C++23)
move
(C++11)
move_if_noexcept
(C++11)
as_const
(C++17)
常用詞彙型別
pair
tuple
(C++11)
optional
(C++17)
any
(C++17)
variant
(C++17)
tuple_size
(C++11)
tuple_element
(C++11)
apply
(C++17)
make_from_tuple
(C++17)
expected
(C++23)
[編輯]
診斷庫
異常處理
exception
uncaught_exception
uncaught_exceptions
(
直至 C++20*
)
(C++17)
exception_ptr
(C++11)
make_exception_ptr
(C++11)
current_exception
(C++11)
rethrow_exception
(C++11)
nested_exception
(C++11)
throw_with_nested
(C++11)
rethrow_if_nested
(C++11)
異常處理失敗
terminate
terminate_handler
get_terminate
(C++11)
set_terminate
bad_exception
unexpected
(
直到 C++17*
)
unexpected_handler
(
直到 C++17*
)
get_unexpected
(
直到 C++17*
)
set_unexpected
(
直到 C++17*
)
錯誤號
錯誤碼
errno
斷言
assert
異常類別
logic_error
invalid_argument
domain_error
length_error
out_of_range
runtime_error
range_error
overflow_error
underflow_error
tx_exception
(TM TS)
系統錯誤
error_category
(C++11)
generic_category
(C++11)
system_category
(C++11)
error_condition
(C++11)
errc
(C++11)
error_code
(C++11)
system_error
(C++11)
堆疊跟蹤
stacktrace_entry
(C++23)
basic_stacktrace
(C++23)
除錯支援
is_debugger_present
(C++26)
breakpoint_if_debugging
(C++26)
breakpoint
(C++26)
[編輯]
std::error_condition
成員函式
error_condition::error_condition
error_condition::operator=
error_condition::assign
error_condition::clear
error_condition::value
error_condition::category
error_condition::message
error_condition::operator bool
非成員函式
operator==
operator!=
operator<
operator<=>
(直到 C++20)
(直到 C++20)
(C++20)
輔助類
is_error_condition_enum
hash
<std::error_condition>
[編輯]
const
error_category
&
category
(
)
const
noexcept
;
(C++11 起)
返回儲存的錯誤類別。
[
編輯
]
引數
(無)
[
編輯
]
返回值
儲存的錯誤類別。
[
編輯
]
參閱
error_category
(C++11)
錯誤類別的基類
(類)
[編輯]