---
name: "__gnu_cxx::throw_value_limit"
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_cxx::throw_value_limit/3cxx"
---

# \_\_gnu\_cxx::throw\_value\_limit(3cxx)

Type throwing via limit condition.

## NAME

\_\_gnu\_cxx::throw\_value\_limit - Type throwing via limit condition.

## SYNOPSIS

`#include <throw_allocator.h>`

Inherits **\_\_gnu\_cxx::throw\_value\_base\< limit\_condition \>**.

### Public Types

typedef **throw\_value\_base**\< **limit\_condition** \> **base\_type**\
 typedef **limit\_condition** **condition\_type**\

### Public Member Functions

**throw\_value\_limit** (const std::size\_t \_\_i)\
 **throw\_value\_limit** (const **throw\_value\_limit** &\_\_other)\
 **throw\_value\_limit** (**throw\_value\_limit** &&)=default\
 **throw\_value\_base** & **operator++** ()\
 **throw\_value\_limit** & **operator=** (const **throw\_value\_limit** &\_\_other)\
 **throw\_value\_limit** & **operator=** (**throw\_value\_limit** &&)=default\

### Static Public Member Functions

static size\_t & **count** ()\
 static size\_t & **limit** ()\
 static void **set\_limit** (const size\_t \_\_l)\
 static void **throw\_conditionally** ()\

### Public Attributes

std::size\_t **\_M\_i**\

## Detailed Description

Type throwing via limit condition.

## Author

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