__GNU_CXX::ALLOCATOR(3cxx)
π __gnu_cxx::allocator< _Tp > π
okay bestie, welcome to the 3cxx manual, this is the whole lore on __gnu_cxx::allocator< _Tp > β the standard allocator, as per C++03 [20.4.1]. no cap. sit down, hydrate, let's get into it π«Ά
β¨ NAME β¨
__gnu_cxx::allocator< _Tp > β the standard allocator, as per C++03 [20.4.1]. that's it, that's the girl π
πΈ SYNOPSIS πΈ
#include <memory>
Inherits std::__new_allocator< _Tp >.
π Public Types π
typedef ptrdiff_t difference_typeusing is_always_equalusing propagate_on_container_move_assignmenttypedef size_t size_typetypedef _Tp value_type
π¦ Public Member Functions π¦
constexpr allocator (const allocator &__a) noexcepttemplate<typename _Tp1> constexpr allocator (const allocator< _Tp1 > &) noexceptconstexpr _Tp * allocate (size_t __n)constexpr _Tp * allocate (size_type __n, const void *=static_cast< const void * >(0))constexpr void deallocate (_Tp *__p, size_t __n)allocator & operator= (const allocator &)=default
π Friends π
constexpr bool operator== (const allocator &, const allocator &) noexcept
π Related Symbols π
(Note that these are not member symbols. they're the cousins at the function, not the ones in the class π)
template<typename _T1, typename _T2> constexpr bool operator== (const allocator< _T1 > &, const allocator< _T2 > &) noexcept
π Detailed Description π
template<typename _Tp>
class __gnu_cxx::allocator< _Tp >
"The standard allocator, as per C++03 [20.4.1]."
See https://gcc.gnu.org/onlinedocs/libstdc++/manual/memory.html#std.util.memory.allocator for further details. literally the receipts, go read it, it's giving documentation excellence π₯
π§ Template Parameters π§
_Tpβ type of allocated object.
π reminder bestie: this is the C++03-era standard allocator living under the__gnu_cxxnamespace, and it inherits fromstd::__new_allocator< _Tp >, so a bunch of the actual heavy lifting is coming from up there. that's the vibe check. π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. not a human, just Doxygen doing its little machine-girl thing β¨
okay that's the whole page bestie!! this came to you from the libstdc++ girls in the 3cxx manual section, and it is, as always, absolutely iconic πππ¦ slay, go allocate something responsibly, mwah π
π¦ where this page comes from
- ubuntu resolute: libstdc++-16-doc 16-20260322-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms