STD::_VECTOR_BASE(3)
π NAME π
okay so, bestie, this is the page for std::_Vector_base< _Tp, _Alloc > β and the entire explanation it gives you is literally: see bits/stl_deque.h's _Deque_base for an explanation. no cap, that's the whole thing. π
This one comes to you from the Library Functions Manual, section 3, in case you were wondering where to find it. π
β¨ SYNOPSIS β¨
#include <vector>
π¦ Inherited by π¦
the way that this base class is out here being inherited by everyone β nineteen whole templates, all of them [protected]:
std::vector< _Tp, polymorphic_allocator< _Tp > >[protected]std::vector< sub_match< _Bi_iter >, _Alloc >[protected]std::vector< _Node *, _Nodeptr_Alloc >[protected]std::vector< Catalog_info * >[protected]std::vector< _CharT >[protected]std::vector< _StringT >[protected]std::vector< _CharClassT >[protected]std::vector< size_t >[protected]std::vector< time_zone >[protected]std::vector< time_zone_link >[protected]std::vector< leap_second >[protected]std::vector< double >[protected]std::vector< _Cmpt >[protected]std::vector< __diff_type >[protected]std::vector< _RealType >[protected]std::vector< int >[protected]std::vector< result_type >[protected]std::vector< bool, _Alloc >[protected]- and
std::vector< _Tp, _Alloc >[protected]
main character energy fr fr π
πΈ Public Types πΈ
typedef __gnu_cxx::__alloc_traits< _Alloc >::template rebind< _Tp >::other _Tp_alloc_typeβ the allocator, but rebound to hand out_Tps. iconic.typedef _Alloc allocator_typeβ the allocator type, exactly as you passed it in. πtypedef __gnu_cxx::__alloc_traits< _Tp_alloc_type >::pointer pointerβ the pointer type that falls out of_Tp_alloc_type. β
π Public Member Functions π
constexpr _Vector_base (_Tp_alloc_type &&__a) noexceptβ builds one from an rvalue_Tp_alloc_type, and it'snoexcept, as it should be. β¨_Vector_base (_Vector_base &&)=defaultβ the move constructor, just defaulted. lowkey the easiest one. π«Άconstexpr _Vector_base (_Vector_base &&__x, const allocator_type &__a)β moves from__xwhile also taking anallocator_typereference. πΈconstexpr _Vector_base (const allocator_type &__a) noexceptβ give it an allocator, get a base.noexcept, bestie. πconstexpr _Vector_base (const allocator_type &__a, _Vector_base &&__x)β allocator and an rvalue_Vector_basein one go. π₯constexpr _Vector_base (size_t __n)β takes asize_t __n, that's it, that's the vibe. πconstexpr _Vector_base (size_t __n, const allocator_type &__a)β thesize_t __nplus your allocator. serving both. π¦constexpr pointer _M_allocate (size_t __n)β allocate__nof them, hand back apointer. πconstexpr void _M_deallocate (pointer __p, size_t __n)β give it back:pointer __p,size_t __n. cleanup era. π§Ήconstexpr const _Tp_alloc_type & _M_get_Tp_allocator () const noexceptβ the const-flavoured getter for the_Tp_alloc_type,noexcept. πconstexpr _Tp_alloc_type & _M_get_Tp_allocator () noexceptβ and the non-const one, alsonoexcept. twins. π―constexpr allocator_type get_allocator () const noexceptβ hands you back anallocator_type, const,noexcept. π
π Public Attributes π
_Vector_impl _M_implβ the one and only public attribute, right there in the open. she's not hiding. π
π Protected Member Functions π
constexpr void _M_create_storage (size_t __n)β protected,constexpr,void, takes asize_t __n. iykyk. π
π₯ Detailed Description π₯
template<typename _Tp, typename _Alloc>
struct std::_Vector_base< _Tp, _Alloc >
"Seebits/stl_deque.h's_Deque_basefor an explanation.
that's it. that's the detailed description. the details have left the chat. ππ (yes, the quote really does just end like that, bestie β I'm not gonna pretend otherwise)
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. not a human, just vibes π€β¨
and that's the whole page, bestie!! π shoutout to libstdc++ for the source and version, and to Doxygen for auto-generating the whole thing β the footer's out here repping std::_Vect..., _Alloc >(3) with no date in sight, so we work with what we've got. mwah π
ππ¦
π¦ where this page comes from
- arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
- fedora 44: libstdc++-docs 16.0.1-0.10.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- fedora 44: libstdc++-docs 16.2.1-2.fc44
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms