std::contracts::invoke_default_contract_violation_handler
From cppreference.com
 
 
 
 
 
 C++ 
 Feature test macros (C++20)
 Concepts library (C++20)
 Metaprogramming library (C++11)
 Ranges library (C++20)
 Filesystem library (C++17)
 Concurrency support library (C++11)
 Execution control library (C++26)
Utilities library 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
  
 
 
 Type support (basic types, RTTI)
 Library feature-test macros (C++20)
(C++11)
(C++20)
(C++26)
(C++20)
 Coroutine support (C++20)
 Contract support (C++26)
(C++20)(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
  (C++20)(C++20)(C++20)
  (C++20)(C++20)(C++20)
 General utilities
 Relational operators (deprecated in C++20)
(C++20)(C++20)(C++20)
  (C++20)(C++20)(C++20)
(C++20)
 Swap and type operations 
 Common vocabulary types
Contract support 
 
 
 
 
 
 Contract-violation information
(C++26)
(C++26)
(C++26)
(C++26)
 Helper functions
invoke_default_contract_violation_handler
(C++26)
Defined in header 
 
 
<contracts> 
 void invoke_default_contract_violation_handler
( const std::contracts::contract_violation& violation );
 
 (since C++26) 
( const std::contracts::contract_violation& violation );
Invokes the default contract-violation handler with violation as the argument.
[edit] Parameters
 violation
 -
 the object holding the information of the contract violation currently being handled
[edit] Notes
Since objects of type std::contracts::contract_violation cannot be constructed or copied by the user, this function can only be called only during the execution of a user-defined contract-violation handler, where violation refers to the same object as the parameter of the user-defined handler.
This function is useful if the user wishes to fall back to the default contract-violation handler after having performed some custom action (such as additional logging).