std::get_unexpected(3)
π NAME β std::get_unexpected(3) from the C++ Standard Libary π
okay so bestie, welcome to the std::get_unexpected(3) page from the C++ Standard Libary β and the name is literally std::get_unexpected, no cap π
. Thatβs the whole NAME: std::get_unexpected - std::get_unexpected. Minimal, iconic, main-character energy β¨.
πΈ Synopsis πΈ
Defined in header <exception>
(since C++11)
std::unexpected_handler get_unexpected() noexcept; (deprecated)
(removed in C++17)
So what does it do? It returns the currently installed std::unexpected_handler, which may be a null pointer. Yes, bestie, it may be a null pointer β thatβs literally what the page says, not me being shady π.
This function is thread-safe. Prior call to std::set_unexpected synchronizes-with (see std::memory_order) the subsequent calls to this function. Thatβs the whole vibe check π«Ά.
π¦ Parameters π¦
(none) β literally no parameters, bestie. Zero. Nada. π
β¨ Return value β¨
The currently installed std::unexpected_handler. Thatβs it. Thatβs the return. π
π See also π
unexpected_handlerβ the type of the function called bystd::unexpected(removed in C++17)(typedef).set_unexpectedβ changes the function to be called bystd::unexpected(removed in C++17)(function).
okay thatβs the whole page, bestie π. This cutie came from http://cppreference.com and the date on it is 2024.06.10 β slay, go touch some grass, and may your std::unexpected_handler be exactly what you expect πβ¨π¦.
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms