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

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

An opaque pointer to an arbitrary exception.

## NAME

std::\_\_exception\_ptr::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.

## Author

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