std::get_terminate(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ‘‘ std::get_terminate(3) πŸ‘‘

okay so welcome to the std::get_terminate manual page, bestie β€” this is from the C++ Standard Libary manual and it's literally all about peeking at the currently installed terminate handler. no cap, it's short but iconic πŸ’…


✨ NAME ✨

std::get_terminate β€” std::get_terminate


🌸 Synopsis 🌸

Defined in header <exception>:

std::terminate_handler get_terminate() noexcept;  (since C++11)

So this returns the currently installed std::terminate_handler, which may be a null pointer. yes, bestie, may be a null pointer β€” keep that in mind 🫢

This function is thread-safe. A prior call to std::set_terminate (since C++11) synchronizes-with (see std::memory_order) this function. that's the whole synchronization vibe, fr fr ✨


πŸŽ€ Parameters πŸŽ€

(none)

like, none at all. zero. zilch. the parameter list is giving empty πŸ“


πŸ’– Return value πŸ’–

The currently installed std::terminate_handler.


πŸ¦‹ See also πŸ¦‹

  • terminate_handler β€” the type of the function called by std::terminate (typedef)
  • set_terminate β€” changes the function to be called by std::terminate (function)

okay that's the whole page, bestie β€” short, sweet, and thread-safe πŸ’€βœ¨

stay iconic πŸ’… β€” source http://cppreference.com, version/date 2024.06.10, page std::get_terminate(3) 🌈

πŸ“¦ where this page comes from