std::out_of_range(3cxx)

std::out_of_range3cxx

Usage

#include <stdexcept>

Inherits std::logic_error.

Public Member Functions

out_of_range (const char *) _GLIBCXX_TXN_SAFE
out_of_range (const out_of_range &)=default
out_of_range (const string &__arg) _GLIBCXX_TXN_SAFE
out_of_range (out_of_range &&)=default
out_of_range & operator= (const out_of_range &)=default
out_of_range & operator= (out_of_range &&)=default
virtual const char * what () const noexcept

Detailed Description

This represents an argument whose value is not within the expected range (e.g., boundary checks in basic_string).

Member Function Documentation

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

Returns a C-style character string describing the general cause of the current error (the same string passed to the ctor).

Reimplemented from std::exception.

Reimplemented in std::future_error.

Releases

7 releases since Debian 6.0 (Squeeze); the text changed 6 times.

  1. 6.0
  2. 7
  3. 9
  4. 10
  5. 11
  6. 12
  7. 13

Author

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

From libstdc++-12-doc 12.4.0-5 in Debian 13 (Trixie). Also shipped by libstdc++-13-doc, libstdc++-14-doc. Parsed by carta from the page's man source.