__gnu_cxx:..._allocator(3)
okay bestie, welcome to the Library Functions Manual page for __gnu_cxx:..._allocator(3) β yes, that title is doing the absolute most, but we're gonna get through it together π
β¨ NAME β¨
__gnu_cxx::throw_allocator β the allocator class with logging and exception control. that's the whole summary, no cap π
π¦ SYNOPSIS π¦
quick vibe check: it Inherits __gnu_cxx::throw_allocator_base.
π Public Types π
these are the public types, and yes you need every single one, periodt:
typedef const value_type * const_pointertypedef const value_type & const_referencetypedef ptrdiff_t difference_typetypedef value_type * pointertypedef value_type & referencetypedef size_t size_typetypedef T value_type
π οΈ Public Member Functions π οΈ
okay so here's the full roster, bestie β no skipping the "boring" ones, because they're all iconic in their own way:
pointer allocate (size_type __n, std::allocator< void >::const_pointer hint=0)void check_allocated (size_type label)void check_allocated (pointer __p, size_type __n)template<typename... _Args> void construct (pointer __p, _Args &&...__args)void construct (pointer __p, const T &val)void deallocate (pointer __p, size_type __n)void destroy (pointer __p)void init (unsigned long seed)size_type max_size () const throw ()template<typename U > throw_allocator (const throw_allocator< U > &) throw ()throw_allocator (const throw_allocator &) throw ()
π Static Public Member Functions π
static public energy only, fr fr:
static bool empty ()static double get_throw_prob ()static void set_label (size_t l)static void set_throw_prob (double throw_prob)
π Static Protected Member Functions π
protected but still main character β protect these like your fave hoodie:
static void check_allocated (void *, size_t)static void erase (void *, size_t)static void insert (void *, size_t)static void throw_conditionally ()
πΈ Detailed Description πΈ
the detailed tea is this: template<typename T> class __gnu_cxx::throw_allocator< T > is the allocator class with logging and exception control. that's the plot. literally.
and the definition lives right here: Definition at line 189 of file throw_allocator.h.
π Author π
the author line is literally Generated automatically by Doxygen for libstdc++ from the source code. β no human to tag, just Doxygen doing its thing π«Ά
mwah π that's the page! source/version: libstdc++; date: 21 Apr 2009; footer title: __gnu_cxx:..._allocator(3). byeee π¦
π¦ 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