Allocators(3)
π NAME π
Bestie, welcome to Allocators(3) from the Library Functions Manual β this is the libstdc++ allocator lineup and itβs highkey giving βclasses encapsulating memory operationsβ with full main character energy β¨ Vibe check: passed, it ate, no cap π
Allocators -
π¦ Classes π¦
class __gnu_cxx::__mt_alloc< _Tp, _Poolp >β okay so this is a fixed size (power of 2) allocator which - when compiled with thread support - will maintain one freelist per size per thread plus a'global'one. Steps are taken to limit the per thread freelist sizes (by returning excess back to the'global'list). Further details:http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt12ch32.html."β yes, the stray quote is part of the source vibe, no cap πclass __gnu_cxx::__pool_alloc< _Tp >β Allocator using a memory pool with a single lock. πclass __gnu_cxx::_ExtPtr_allocator< _Tp >β An example allocator which uses a non-standard pointer type. This allocator specifies that containers use a'relative pointer'as it's pointer type. (Seeext/pointer.h) Memory allocation in this example is still performed usingstd::allocator."β another stray quote, keeping the lore intact πclass __gnu_cxx::array_allocator< _Tp, _Array >β An allocator that uses previously allocated memory. This memory can be externally, globally, or otherwise allocated. πΈclass __gnu_cxx::bitmap_allocator< _Tp >β Bitmap Allocator, primary template. π₯class __gnu_cxx::debug_allocator< _Alloc >β A meta-allocator with debugging bits, as per[20.4]. This is precisely the allocator defined in the C++ Standard. Literally:- all allocation calls
operator new - all deallocation calls
operator delete."β yep, another stray quote, sheβs iconic π
- all allocation calls
class __gnu_cxx::malloc_allocator< _Tp >β An allocator that usesmalloc. This is precisely the allocator defined in the C++ Standard. Fr fr:- all allocation calls
malloc - all deallocation calls
free."β stray quote number whatever, we keep it π«Ά
- all allocation calls
class __gnu_cxx::new_allocator< _Tp >β An allocator that uses globalnew, as per[20.4]. This is precisely the allocator defined in the C++ Standard. Ngl:- all allocation calls
operator new - all deallocation calls
operator delete."β another one, slay π
- all allocation calls
class __gnu_cxx::throw_allocator< T >β Allocator class with logging and exception control. β¨class std::allocator< _Tp >β The'standard'allocator, as per[20.4]. Further details:http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt04ch11.html."β the final stray quote, periodt π
π Detailed Description π
Classes encapsulating memory operations. Thatβs the whole detailed description, bestie β the way that this page wraps up memory operations is lowkey iconic, and weβre obsessed π¦
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. Not me thinking Doxygen is the main character here π€π
Signed with love by libstdc++, dated 21 Apr 2009 β mwah πβ¨
π¦ where this page comes from
- nixpkgs unstable: std-man-pages 4.4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms