__GNU_CXX::THROW_ALLOCATOR_RANDOM(3cxx)
π NAME π
__gnu_cxx::throw_allocator_random< _Tp > β Allocator throwing via random condition. This is manual section 3cxx, bestie, and itβs literally the page for the allocator that throws via a random condition. No cap. π
β¨ SYNOPSIS β¨
#include <throw_allocator.h>
Inherits __gnu_cxx::throw_allocator_base< _Tp, random_condition >.
π Public Types π
typedef const value_type * const_pointerβ the const-pointer alias, slaying as always.typedef const value_type & const_referenceβ the const-reference alias.typedef std::ptrdiff_t difference_typeβ the difference type, usingstd::ptrdiff_t.typedef value_type * pointerβ the pointer alias.typedef std::true_type propagate_on_container_move_assignmentβ the move-assignment propagation trait, and itβsstd::true_typeβ true is the vibe.typedef value_type & referenceβ the reference alias.typedef std::size_t size_typeβ the size type, usingstd::size_t.typedef _Tp value_typeβ the value type, aka_Tp.
π Public Member Functions π
throw_allocator_random (const throw_allocator_random &) noexceptβ copy constructor energy, withnoexceptnoted.template<typename _Tp1 > throw_allocator_random (const throw_allocator_random< _Tp1 > &) noexceptβ converting constructor from another_Tp1version, alsonoexcept.const_pointer address (const_reference __x) const noexceptβ const address getter,noexceptand all.pointer address (reference __x) const noexceptβ non-const address getter, alsonoexcept.pointer allocate (size_type __n, const void *__hint=0)β allocate with__nand the optional__hint=0.void check (size_t label)β thecheckcall with asize_t label.void check (size_type __n)β the othercheckcall, this one withsize_type __n.void check_allocated (pointer __p, size_type __n)βcheck_allocatedwithpointer __pandsize_type __n.map_alloc_type::iterator check_allocated (void *p, size_t size)β the map-iterator-returningcheck_allocated, takingvoid *pandsize_t size.void check_constructed (size_t label)βcheck_constructedwithsize_t label.map_construct_type::iterator check_constructed (void *p)β the map-iterator-returningcheck_constructed, takingvoid *p.void construct (_Up *__p, _Args &&... __args)β construct into_Up *__pfrom_Args &&... __args.void deallocate (pointer __p, size_type __n)β deallocatepointer __pwithsize_type __n.void destroy (_Up *__p)β destroy_Up *__p.void erase (void *p, size_t size)β erase withvoid *pandsize_t size.void erase_construct (void *p)βerase_constructwithvoid *p.void insert (void *p, size_t size)β insert withvoid *pandsize_t size.void insert_construct (void *p)βinsert_constructwithvoid *p.size_type max_size () const noexceptβmax_size, const andnoexcept.throw_allocator_random & operator= (const throw_allocator_random &)=defaultβ copy assignment, and itβs=default, periodt.void seed (unsigned long __s)β seed withunsigned long __s.
π¦ Static Public Member Functions π¦
static void check ()β staticcheckwith no args.static size_t get_label ()β staticget_label, returningsize_t.static void set_label (size_t l)β staticset_labelwithsize_t l.static void set_probability (double __p)β staticset_probabilitywithdouble __p.static void throw_conditionally ()β staticthrow_conditionally, no args.
π Detailed Description π
The struct in question is exactly this, bestie:
template<typename _Tp>
struct __gnu_cxx::throw_allocator_random< _Tp >"Allocator throwing via
random condition.
Itβs giving βAllocator throwing via random condition.β β yes, that quote mark is right there in the source text, Iβm not fixing it π.
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
Sign-off time, bestie: source/version is libstdc++, manual section is 3cxx, and the date is not printed on this page β so Iβm not inventing one, 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