__GNU_CXX::DEBUG_ALLOCATOR(3)
okay so bestie π this is the __gnu_cxx::debug_allocator< _Alloc >(3) page, and it's coming at you from the Library Functions Manual. she's a meta-allocator with debugging bits, and honestly? iconic. let's break it down, no cap.
NAME π
__gnu_cxx::debug_allocator< _Alloc > β a meta-allocator with debugging bits. periodt.
SYNOPSIS β¨
#include <debug_allocator.h>
Public Types π¦
const_pointerβtypedef _Traits::const_pointer const_pointerconst_referenceβtypedef _Traits::const_reference const_referencedifference_typeβtypedef _Traits::difference_type difference_typepointerβtypedef _Traits::pointer pointerreferenceβtypedef _Traits::reference referencesize_typeβtypedef _Traits::size_type size_typevalue_typeβtypedef _Traits::value_type value_type
Public Member Functions π
debug_allocator (const _Alloc &__a)β constructor, she's serving.template<typename _Alloc2> debug_allocator (const debug_allocator< _Alloc2 > &__a2, typename __convertible< _Alloc2 >::__type=0)β constructor with_Alloc2, she's flexible.pointer allocate (size_type __n)β allocate, she allocates.pointer allocate (size_type __n, const void *__hint)β allocate with a hint, thoughtful.template<typename _Tp, typename... _Args> void construct (_Tp *__p, _Args &&... __args)β construct, build it.void construct (pointer __p, const value_type &__val)β construct from value, cute.void deallocate (pointer __p, size_type __n)β deallocate, bye.template<typename _Tp> void destroy (_Tp *__p)β destroy, dramatic.size_type max_size () const throw ()β max size, she has limits.
Friends π«Ά
template<typename _Alloc2> bool operator== (const debug_allocator &__lhs, const debug_allocator< _Alloc2 > &__rhs) noexceptβ equality operator, friendship goals.
Detailed Description π¦
template<typename _Alloc>
class __gnu_cxx::debug_allocator< _Alloc >"A meta-allocator with debugging bits.
This is precisely the allocator defined in the C++03 Standard. no cap, bestie.
Author πΈ
Generated automatically by Doxygen for libstdc++ from the source code. so official.
mwah π this page is a libstdc++ production, and the footer title is __gnu_cxx:...< _Alloc >(3). that's the whole vibe. π
π¦ 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