std::bad_weak_ptr(3)

std::bad_weak_ptr3

Exception possibly thrown by shared_ptr.

Usage

#include <memory>

Inherits std::exception.

Public Member Functions

virtual char const * what () const noexcept

Detailed Description

Exception possibly thrown by shared_ptr.

Member Function Documentation

virtual char const * std::bad_weak_ptr::what () const [virtual], [noexcept]

Returns a C-style character string describing the general cause of the current error.

Reimplemented from std::exception.

Author

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

From gcc 16.2.1+r23+gd564253eb6c8-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.