__GNU_CXX::ANNOTATE_BASE(3)

📦
version 16.2.1+r23+gd564253eb6c8 · 6 versions
, in arch rolling, fedora 44

✨ NAME ✨

__gnu_cxx::annotate_base — bestie, this is the base class for checking address and label info about allocations 💖

Ok so what it actually does: it creates a std::map between the allocated address (void*) and a datum for annotations, and those annotations are a pair of numbers that correspond to the label and the allocated size. That's the whole vibe. 🎀


🌸 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) — runs a check against the given label.
  • map_alloc_type::iterator check_allocated (void *p, size_t size) — checks the allocation at p with that size, hands you back an iterator into map_alloc_type.
  • void check_constructed (size_t label) — checks the constructed stuff for label.
  • map_construct_type::iterator check_constructed (void *p) — checks the constructed thing at p, gives you back an iterator into map_construct_type.
  • void erase (void *p, size_t size) — yeets the entry at p with size out of the map.
  • void erase_construct (void *p) — same energy but for the construct map, at p.
  • void insert (void *p, size_t size) — adds p and size in there.
  • void insert_construct (void *p) — inserts p into the construct map.

✨ Static Public Member Functions

  • static void check () — the no-argument static check. iconic.
  • static size_t get_label () — returns the current label as a size_t.
  • static void set_label (size_t l) — sets the label to l.

🫶 Friends

  • std::ostream & operator<< (std::ostream &os, const annotate_base &__b) — streams an annotate_base out to an std::ostream. friends supporting friends fr fr 💜

🌈 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.

That's literally the entire job description and honestly? she ate. 👑


🎀 Author 🎀

Generated automatically by Doxygen for libstdc++ from the source code. (So if you were about to send flowers, they go to Doxygen, not a human. 😭)


no cap, that's the whole page — every member function, every static, the friend, the include, the inheritance, all of it. nothing skipped, nothing invented. 💀✨

Signing off from the libstdc++ manual, page __gnu_cxx::annotate_base(3) — thanks for reading bestie, ily, go check your allocations 🦋💖🌸

📦 where this page comes from
  • arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 · GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
  • fedora 44: libstdc++-docs 16.0.1-0.10.fc44 · GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • fedora 44: libstdc++-docs 16.2.1-2.fc44
  • fedora 44: libstdc++-docs 16.2.1-3.fc44 · GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
  • 💖 girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms