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/../error/error_code/../exception/set_unexpected.html below:

std::set_unexpected - cppreference.com

C++ Compiler support Freestanding and hosted Language Standard library Standard library headers Named requirements Feature test macros (C++20) Language support library Concepts library (C++20) Diagnostics library Memory management library Metaprogramming library (C++11) General utilities library Containers library Iterators library Ranges library (C++20) Algorithms library Strings library Text processing library Numerics library Date and time library Input/output library Filesystem library (C++17) Concurrency support library (C++11) Execution control library (C++26) Technical specifications Symbols index External libraries [edit] Diagnostics library Exception handling exception uncaught_exceptionuncaught_exceptions

(until 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)

Exception handling failures terminate terminate_handler get_terminate

(C++11)

set_terminate bad_exception unexpected

(until C++17*)

unexpected_handler

(until C++17*)

get_unexpected

(until C++17*)

set_unexpected

(until C++17*)

Error numbers Error codes errno Assertions assert Exception categories logic_error invalid_argument domain_error length_error out_of_range runtime_error range_error overflow_error underflow_error tx_exception

(TM TS)

System error 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 stacktrace_entry

(C++23)

basic_stacktrace

(C++23)

Debugging support is_debugger_present

(C++26)

breakpoint_if_debugging

(C++26)

breakpoint

(C++26)

[edit]

Defined in header

<exception> std::unexpected_handler set_unexpected( std::unexpected_handler f ) throw(); (until C++11) std::unexpected_handler set_unexpected( std::unexpected_handler f ) noexcept; (deprecated in C++11)
(removed in C++17)

Makes f the new global std::unexpected_handler and returns the previously installed std::unexpected_handler.

This function is thread-safe. Every call to std::set_unexpected synchronizes-with (see std::memory_order) the subsequent calls to std::set_unexpected and std::get_unexpected

(since C++11) [edit] Parameters f - pointer to function of type std::unexpected_handler, or null pointer [edit] Return value

The previously-installed unexpected handler, or a null pointer value if none was installed.

[edit] See also unexpected

(deprecated in C++11)(removed in C++17)

function called when dynamic exception specification is violated
(function) [edit] get_unexpected

(deprecated in C++11)(removed in C++17)

obtains the current unexpected_handler
(function) [edit] unexpected_handler

(deprecated in C++11)(removed in C++17)

the type of the function called by std::unexpected
(typedef) [edit]

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