__GNU_CXX::THROW_ALLOCATOR_BASE(3cxx)
π NAME
okay so bestie, this is the 3cxx manual page for __gnu_cxx::throw_allocator_base< _Tp, _Cond > β the allocator class with logging and exception generation control, meant to be used as an allocator_type in templatized code. iconic allocator behavior β¨
β¨ SYNOPSIS
#include <throw_allocator.h>
Inherits __gnu_cxx::annotate_base, and _Cond.
π Public Types
typedef const value_type * const_pointerβ the const pointer type flex πtypedef const value_type & const_referenceβ the const reference type vibetypedef std::ptrdiff_t difference_typeβ the difference type, slaytypedef value_type * pointerβ the regular pointer typetypedef std::true_type propagate_on_container_move_assignmentβ the move-assignment propagation type, and yes itβsstd::true_typeπ«Άtypedef value_type & referenceβ the reference typetypedef std::size_t size_typeβ the size type, periodttypedef _Tp value_typeβ the value type is literally_Tpπ
π«Ά Public Member Functions
const_pointer address (const_reference __x) const noexceptβ gives youconst_pointerfor aconst_reference __x, and itβsnoexceptpointer address (reference __x) const noexceptβ gives youpointerfor areference __x, alsonoexceptpointer allocate (size_type __n, const void *__hint=0)β allocate withsize_type __n; the__hintdefaults to0void check (size_t label)βcheckwithsize_t labelvoid check (size_type __n)βcheckwithsize_type __nvoid check_allocated (pointer __p, size_type __n)βcheck_allocatedwithpointer __pandsize_type __nmap_alloc_type::iterator check_allocated (void *p, size_t size)β the othercheck_allocated, returningmap_alloc_type::iterator, withvoid *pandsize_t sizevoid check_constructed (size_t label)βcheck_constructedwithsize_t labelmap_construct_type::iterator check_constructed (void *p)β the othercheck_constructed, returningmap_construct_type::iterator, withvoid *ptemplate<typename _Up , typename... _Args> void construct (_Up *__p, _Args &&... __args)β templateconstructwith_Up,_Args...,_Up *__p, and_Args &&... __argsvoid deallocate (pointer __p, size_type __n)β deallocate withpointer __pandsize_type __ntemplate<typename _Up > void destroy (_Up *__p)β templatedestroywith_Upand_Up *__pvoid erase (void *p, size_t size)β erase withvoid *pandsize_t sizevoid erase_construct (void *p)β erase_construct withvoid *pvoid insert (void *p, size_t size)β insert withvoid *pandsize_t sizevoid insert_construct (void *p)β insert_construct withvoid *psize_type max_size () const noexceptβmax_size,const, andnoexceptπ
π Static Public Member Functions
static void check ()β staticcheck ()static size_t get_label ()β staticget_label ()static void set_label (size_t l)β staticset_label (size_t l)
πΈ Detailed Description
The class signature is literally:
template<typename _Tp, typename _Cond> class __gnu_cxx::throw_allocator_base< _Tp, _Cond >
and the description is giving: "Allocator class with logging and exception generation control. Intended to be used as an allocator_type in templatized code."
β οΈ Note: Deallocate not allowed to throw. That is a hard no on throwing from deallocation, bestie π
βοΈ Author
Generated automatically by Doxygen for libstdc++ from the source code π«Ά
and thatβs the whole page, bestie ππ¦. The footer/source/version/date sign-off is libstd__gnu_cxx::thr...e< _Tp, _Cond >(3cxx) β periodt β¨
π¦ where this page comes from
- debian trixie: libstdc++-12-doc 12.4.0-5
- debian trixie: libstdc++-13-doc 13.3.0-16
- ubuntu noble: libstdc++-12-doc 12.3.0-17ubuntu1
- ubuntu noble: libstdc++-12-doc 12.4.0-2ubuntu1~24.04.1
- ubuntu noble: libstdc++-13-doc 13.2.0-23ubuntu4
- ubuntu noble: libstdc++-13-doc 13.3.0-6ubuntu2~24.04.1
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- ubuntu questing: libstdc++-12-doc 12.5.0-6ubuntu1
- ubuntu questing: libstdc++-13-doc 13.4.0-4ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms