STD::__UNSPECIFIED___EXCEPTION_PTR(3)
π¦ STD::__UNSPECIFIED___EXCEPTION_PTR(3) β Library Functions Manual π¦
okay so bestie, welcome to the manual page for the mysterious little handle known as std::__unspecified__::exception_ptr π
β it lives in the Library Functions Manual, and itβs giving βopaque pointer to an arbitrary exceptionβ energy. β¨
πΈ NAME πΈ
std::__unspecified__::exception_ptr β an opaque pointer to an arbitrary exception.
Thatβs the whole vibe: itβs an opaque pointer to an arbitrary exception, so youβre not peeking inside the exception itself through this type. π«Ά
β¨ SYNOPSIS β¨
π Public Member Functions π
Hereβs the full roster, with every noexcept left exactly where it belongs:
exception_ptr (const exception_ptr &) noexcept
exception_ptr (exception_ptr &&__o) noexcept
exception_ptr (nullptr_t) noexcept
const class std::type_info * __cxa_exception_type () const noexcept
operator bool () const noexcept
exception_ptr & operator= (const exception_ptr &) noexcept
exception_ptr & operator= (exception_ptr &&__o) noexcept
void swap (exception_ptr &) noexcept
Copy-construct it, move-construct it, construct from nullptr_t, ask it for the exception type via __cxa_exception_type, bool-check it, copy-assign it, move-assign it, or swap it β all with noexcept and all iconic. π
π¦ Friends π¦
These are the friend functions, and yes, the noexcept=default and line breaks are part of the whole look:
bool operator== (const exception_ptr &, const exception_ptr &)
noexcept=default
exception_ptr std::current_exception () noexcept
template<typename _Ex > exception_ptr std::make_exception_ptr (_Ex)
noexcept
void std::rethrow_exception (exception_ptr)
π Related Functions π
Note that these are not member functions.
void swap (exception_ptr &__lhs, exception_ptr &__rhs)
bestie PSA: that swap is related, not a member function. Donβt get it twisted. π
π Detailed Description π
An opaque pointer to an arbitrary exception. β¨
The actual name of this type is unspecified, so the alias std::exception_ptr should be used to refer to it. Periodt β thatβs the name youβre meant to use. π
π« Since π«
C++11(but usable inC++98as a GCC extension) β yes bestie, it has range. π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. π€β¨
okay bye bestie π β source/version: libstdc++, date: Fri Feb 14 2025. Thatβs the tea, and this page is officially signed off. π«Άπ
π¦ where this page comes from
- centos-stream 9: gcc-toolset-13-libstdc++-docs 13.3.1-2.3.el9 Β· GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms