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

# \_\_gnu\_pbds::insert\_error(3cxx)

An entry cannot be inserted into a container object for logical reasons (not, e.g., if memory is unabvailable, in which case the allocator\_type's exception will be thrown).

## NAME

\_\_gnu\_pbds::insert\_error - An entry cannot be inserted into a container object for logical reasons (not, e.g., if memory is unabvailable, in which case the allocator\_type's exception will be thrown).

## SYNOPSIS

`#include <exception.hpp>`

Inherits **\_\_gnu\_pbds::container\_error**.

### Public Member Functions

virtual const char \* **what** () const noexcept\

## Detailed Description

An entry cannot be inserted into a container object for logical reasons (not, e.g., if memory is unabvailable, in which case the allocator\_type's exception will be thrown).

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

## Author

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