---
name: "std::underflow_error"
section: "3"
platform: "linux"
package: "gcc"
version: "16.2.1+r23+gd564253eb6c8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/std::underflow_error"
---

# std::underflow\_error(3)

## NAME

std::underflow\_error

## SYNOPSIS

\#include \<stdexcept\_except.h\>

Inherits **std::runtime\_error**.

### Public Member Functions

**underflow\_error** (const char \*)\
 **underflow\_error** (const **string** &\_\_arg)\
 **underflow\_error** (const underflow\_error &)=default\
 **underflow\_error** (underflow\_error &&)=default\
 underflow\_error & **operator=** (const underflow\_error &)=default\
 underflow\_error & **operator=** (underflow\_error &&)=default\
 virtual const char \* **what** () const noexcept\

## Detailed Description

Thrown to indicate arithmetic underflow.

## Member Function Documentation

### virtual const char \* std::runtime\_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::experimental::filesystem::v1::filesystem\_error**, **std::filesystem::filesystem\_error**, and **std::ios\_base::failure**.

References **what()**.

Referenced by **what()**.

## Author

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