__GNU_CXX::__DETAIL::__MINI_VECTOR(3cxx)
π NAME π
okay so <pink>__gnu_cxx::__detail::__mini_vector< _Tp ></pink> β bestie, it's literally a stripped-down, no-frills version of the full-fledged std::vector<>. like, the bare-minimum vector. the vector that woke up and chose simplicity. (this page lives in the <cyan>3cxx</cyan> section of the manual, iykyk π)
β¨ SYNOPSIS β¨
#include <bitmap_allocator.h>
π Public Types π
so here's the whole type-squad, no cap:
typedef const _Tp & const_referenceβ a const reference to_Tp, obviously πtypedef std::ptrdiff_t difference_typeβ yep,std::ptrdiff_t, the classictypedef pointer iteratorβ plot twist: the iterator is just the pointer. iconic, honestlytypedef _Tp * pointerβ raw_Tppointer, keepin' it realtypedef _Tp & referenceβ a plain_Tpreferencetypedef std::size_t size_typeβstd::size_tfor all your sizing needstypedef _Tp value_typeβ the value type is_Tpbestie, that's the whole vibe
π¦ Public Member Functions π¦
reference back () const throw ()β gives you the last element, that's it πΈiterator begin () const throw ()β where it all starts β¨void clear () throw ()β wipe it clean,throw ()and everythingiterator end () const throw ()β the end-of-the-road iterator π«Άvoid erase (iterator __pos) throw ()β yeet the element at__posvoid insert (iterator __pos, const_reference __x)β slide__xin at__pos(note: this one has nothrow (), so, yeah π)reference operator[] (const size_type __pos) const throw ()β index into it,throw ()-stylevoid pop_back () throw ()β bye-bye last element πvoid push_back (const_reference __x)β add__xto the end, main character energysize_type size () const throw ()β how many you got? π
π Detailed Description π
template<typename _Tp>
class __gnu_cxx::__detail::__mini_vector< _Tp >
okay so <pink>__mini_vector<></pink> is a stripped down version of the full-fledged std::vector<>. periodt.
it is to be used only for built-in types or PODs. that's not a suggestion, that's the whole rule, fr fr. the notable differences are:
- not all accessor functions are present. like, she's minimal. that's the point π
- used ONLY for PODs. (yes, again. it's that serious.)
- no
Allocatortemplate argument. she usesoperator new()to get memory, andoperator delete()to free it.
β οΈ caveat bestie please read this one: the dtor does NOT free the memory allocated, so this is a memory-leaking vector! π like it will absolutely leak. that is documented behavior. do not come for me.
π Author π
generated automatically by Doxygen for libstdc++ from the source code. slay, robot β¨
and that's the page!! π mwah π β with love from the <hotpink>libstdc++</hotpink> girlies, as stamped in that footer (you know the one: libstd__gnu_cxx::__d...i_vector< _Tp >(3cxx)) π«Άπ
π¦ where this page comes from
- debian trixie: libstdc++-12-doc 12.4.0-5
- debian trixie: libstdc++-13-doc 13.3.0-16
- debian trixie: libstdc++-14-doc 14.2.0-19
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2.1
- ubuntu noble: libstdc++-11-doc 11.4.0-9ubuntu1
- ubuntu noble: libstdc++-11-doc 11.5.0-1ubuntu1~24.04.1
- 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 noble: libstdc++-14-doc 14.2.0-4ubuntu2~24.04.1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1.1
- ubuntu questing: libstdc++-12-doc 12.5.0-6ubuntu1
- ubuntu questing: libstdc++-13-doc 13.4.0-4ubuntu1
- ubuntu questing: libstdc++-14-doc 14.3.0-8ubuntu1
- ubuntu questing: libstdc++-15-doc 15.2.0-4ubuntu4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms