A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/language/../algorithm/../contract/detection_mode.html below:

std::contracts::detection_mode - cppreference.com

enum class detection_mode : /* unspecified */ {

    predicate_false = 1,
    evaluation_exception = 2

};
(since C++26)

The enumerators of std::contracts::detection_mode correspond to the reasons that cause the contract violation to happen under a context that is not manifestly constant-evaluated, with meanings listed below:

Enumerator Meaning predicate_false the contract violation occurs because the result of the predicate is false evaluation_exception the contract violation occurs because the evaluation of the predicate exits via an exception [edit] Notes

If a contract violation occurs in a context that is manifestly constant-evaluated, the contract-violation handler is not invoked.

[edit] See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4