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

# \_\_gnu\_cxx::annotate\_base(3cxx)

Base class for checking address and label information about allocations. Create a std::map between the allocated address (void\*) and a datum for annotations, which are a pair of numbers corresponding to label and allocated size.

## NAME

\_\_gnu\_cxx::annotate\_base - Base class for checking address and label information about allocations. Create a std::map between the allocated address (void\*) and a datum for annotations, which are a pair of numbers corresponding to label and allocated size.

## SYNOPSIS

`#include <throw_allocator.h>`

Inherited by **\_\_gnu\_cxx::throw\_allocator\_base\< \_Tp, limit\_condition \>**, **\_\_gnu\_cxx::throw\_allocator\_base\< \_Tp, random\_condition \>**, and **\_\_gnu\_cxx::throw\_allocator\_base\< \_Tp, \_Cond \>**.

### Public Member Functions

void **check** (size\_t label)\
 map\_alloc\_type::iterator **check\_allocated** (void \*p, size\_t size)\
 void **check\_constructed** (size\_t label)\
 map\_construct\_type::iterator **check\_constructed** (void \*p)\
 void **erase** (void \*p, size\_t size)\
 void **erase\_construct** (void \*p)\
 void **insert** (void \*p, size\_t size)\
 void **insert\_construct** (void \*p)\

### Static Public Member Functions

static void **check** ()\
 static size\_t **get\_label** ()\
 static void **set\_label** (size\_t l)\

### Friends

**std::ostream** & **operator\<\<** (**std::ostream** &, const **annotate\_base** &)\

## Detailed Description

Base class for checking address and label information about allocations. Create a std::map between the allocated address (void\*) and a datum for annotations, which are a pair of numbers corresponding to label and allocated size.

## Author

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