---
name: "std::__unspecified___exception_ptr"
section: "3cxx"
platform: "linux"
package: "libstdc++-13-doc"
version: "13.3.0-16"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/std::__unspecified___exception_ptr"
---

# std::\_\_unspecified\_\_\_exception\_ptr(3cxx)

An opaque pointer to an arbitrary exception.

## NAME

std::\_\_unspecified\_\_::exception\_ptr - An opaque pointer to an arbitrary exception.

## SYNOPSIS

`#include <exception>`

### Public Member Functions

**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\

### Friends

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 Symbols

(Note that these are not member symbols.)  **void** **swap** (**exception\_ptr** &**\_\_lhs**, **exception\_ptr** &**\_\_rhs**)\

## 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.

**Since**

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

## Author

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