File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ # invoke_default_contract_violation_handler
2+ * contracts[ meta header]
3+ * std::contracts[ meta namespace]
4+ * function[ meta id-type]
5+ * cpp26[ meta cpp]
6+
7+ ``` cpp
8+ namespace std ::contracts {
9+ void invoke_default_contract_violation_handler(const contract_violation& violation);
10+ }
11+ ```
12+
13+ ## 概要
14+ 契約違反が発生した際に呼び出されるデフォルトのハンドラー関数。
15+
16+ この関数は、契約違反が発生した際に、[`contract_violation`](contract_violation.md)オブジェクトを受け取り、デフォルトの処理を実行する。
17+
18+ ## 効果
19+ 契約違反の情報を標準エラー出力に出力し、[`std::terminate()`](/reference/exception/terminate.md)を呼び出す。
20+
21+ ## バージョン
22+ ### 言語
23+ - C++26
24+
25+ ### 処理系
26+ - [Clang](/implementation.md#clang): ?
27+ - [GCC](/implementation.md#gcc): ?
28+ - [ICC](/implementation.md#icc): ?
29+ - [Visual C++](/implementation.md#visual_cpp): ?
30+
31+ ## 関連項目
32+ - [契約に基づくプログラミング](/lang/future/contract-based_programming.md)
33+ - [契約プログラミング](/lang/cpp26/contracts.md)
34+ - [`contract_violation`](contract_violation.md)
35+
36+ ## 参照
37+ - [P2900R14 Contracts for C++](https://open-std.org/jtc1/sc22/wg21/docs/papers/2025/p2900r14.pdf)
You can’t perform that action at this time.
0 commit comments