std::__unspeci...::exception_ptr(3cxx)

πŸ’… std::__unspeci...::exception_ptr(3cxx) β€” manual section 3cxx ✨

okay bestie, gather round 🫢 β€” this is the C++ exception pointer page, and yes the type name is literally β€œunspecified,” so don’t come for me 😭. It lives in manual section 3cxx, and it’s giving opaque pointer to an arbitrary exception main character energy. No cap.

πŸŽ€ NAME

std::__unspecified__::exception_ptr β€” An opaque pointer to an arbitrary exception.

✨ SYNOPSIS

#include <exception>

πŸ’– Public Member Functions

  • exception_ptr (const exception_ptr &) noexcept β€” copy constructor, bestie. It takes a const exception_ptr & and is noexcept. Slay.
  • exception_ptr (exception_ptr &&__o) noexcept β€” move constructor. It takes exception_ptr &&__o and is noexcept.
  • exception_ptr (nullptr_t) noexcept β€” constructor from nullptr_t, and yes it’s noexcept.
  • const class std::type_info * __cxa_exception_type () const noexcept β€” returns a const class std::type_info *, and it’s const noexcept.
  • operator bool () const noexcept β€” bool conversion operator, const noexcept. Very β€œcan I use this?” energy.
  • exception_ptr & operator= (const exception_ptr &) noexcept β€” copy assignment, returns exception_ptr &, noexcept.
  • exception_ptr & operator= (exception_ptr &&__o) noexcept β€” move assignment taking exception_ptr &&__o, returns exception_ptr &, noexcept.
  • void swap (exception_ptr &) noexcept β€” member swap, takes an exception_ptr &, returns void, noexcept.

🫢 Friends

  • bool operator== (const exception_ptr &, const exception_ptr &) noexcept=default β€” equality comparison for two const exception_ptr &s, noexcept=default.
  • exception_ptr std::current_exception () noexcept β€” friend std::current_exception, returns an exception_ptr, noexcept.
  • template<typename _Ex > exception_ptr std::make_exception_ptr (_Ex) noexcept β€” template friend, takes _Ex, returns exception_ptr, noexcept.
  • void std::rethrow_exception (exception_ptr) β€” friend std::rethrow_exception, takes an exception_ptr, returns void.
Note that these are not member symbols.
  • void swap (exception_ptr &__lhs, exception_ptr &__rhs) β€” free-function swap for exception_ptr &__lhs and exception_ptr &__rhs.

πŸ’« Detailed Description

It’s literally an opaque pointer to an arbitrary exception. That’s the whole vibe.

The actual name of this type is unspecified, so the alias std::exception_ptr should be used to refer to it. iykyk β€” don’t go hunting for the real name, just use the alias, bestie πŸ’….

⏰ Since

  • C++11 (but usable in C++98 as a GCC extension)

πŸ’– Author

Generated automatically by Doxygen for libstdc++ from the source code.


okay that’s the whole page 🫢 β€” auto-generated by Doxygen for libstdc++ from the source code, and the footer/source-version + date line energy is libstdstd::__unspeci...::exception_ptr(3cxx). bye bestie, go use the alias πŸ’…βœ¨

πŸ“¦ where this page comes from