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 aconst exception_ptr &and isnoexcept. Slay.exception_ptr (exception_ptr &&__o) noexceptβ move constructor. It takesexception_ptr &&__oand isnoexcept.exception_ptr (nullptr_t) noexceptβ constructor fromnullptr_t, and yes itβsnoexcept.const class std::type_info * __cxa_exception_type () const noexceptβ returns aconst class std::type_info *, and itβsconst 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, returnsexception_ptr &,noexcept.exception_ptr & operator= (exception_ptr &&__o) noexceptβ move assignment takingexception_ptr &&__o, returnsexception_ptr &,noexcept.void swap (exception_ptr &) noexceptβ memberswap, takes anexception_ptr &, returnsvoid,noexcept.
π«Ά Friends
bool operator== (const exception_ptr &, const exception_ptr &) noexcept=defaultβ equality comparison for twoconst exception_ptr &s,noexcept=default.exception_ptr std::current_exception () noexceptβ friendstd::current_exception, returns anexception_ptr,noexcept.template<typename _Ex > exception_ptr std::make_exception_ptr (_Ex) noexceptβ template friend, takes_Ex, returnsexception_ptr,noexcept.void std::rethrow_exception (exception_ptr)β friendstd::rethrow_exception, takes anexception_ptr, returnsvoid.
π Related Symbols
Note that these are not member symbols.
void swap (exception_ptr &__lhs, exception_ptr &__rhs)β free-functionswapforexception_ptr &__lhsandexception_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 inC++98as 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
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms