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's noexcept, 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 __x while also taking an allocator_type reference. 🌸
  • 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_base in one go. πŸ”₯
  • constexpr _Vector_base (size_t __n) β€” takes a size_t __n, that's it, that's the vibe. πŸŽ€
  • constexpr _Vector_base (size_t __n, const allocator_type &__a) β€” the size_t __n plus your allocator. serving both. πŸ¦‹
  • constexpr pointer _M_allocate (size_t __n) β€” allocate __n of them, hand back a pointer. πŸ’…
  • 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, also noexcept. twins. πŸ‘―
  • constexpr allocator_type get_allocator () const noexcept β€” hands you back an allocator_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 a size_t __n. iykyk. πŸ”’

πŸ”₯ Detailed Description πŸ”₯

template<typename _Tp, typename _Alloc>
    struct std::_Vector_base< _Tp, _Alloc >
"See bits/stl_deque.h's _Deque_base for 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