__GNU_DEBUG::_SAFE_VECTOR(3cxx)
π NAME π
Okay so this is the manual page for __GNU_DEBUG::_SAFE_VECTOR(3cxx) β welcome to the libstdc++ Debug Mode corner of the group chat. π«Ά
__gnu_debug::_Safe_vector< _SafeSequence, _BaseSequence > β Base class for Debug Mode vector. Periodt.
β¨ SYNOPSIS β¨
#include <vector>
Inherited by std::__debug::vector< _Tp, _Allocator >. Slay, that's the inheritance chain.
π‘οΈ Protected Member Functions π‘οΈ
These are the protected member functions, bestie β no cap, every signature is staying exactly as-is:
constexpr _Safe_vector (_Safe_vector &&__x) noexceptβ the&&constructor vibe, markednoexcept. πconstexpr _Safe_vector (const _Safe_vector &) noexceptβ theconst &constructor vibe, alsonoexcept.constexpr _Safe_vector (size_type __n) noexceptβ constructor with asize_type __n,noexceptagain.bool _M_requires_reallocation (size_type __elements) const noexceptβ asks if reallocation is required for__elements, and it'sconst noexcept.constexpr void _M_update_guaranteed_capacity () noexceptβ updates the guaranteed capacity,constexprandnoexcept.constexpr _Safe_vector & operator= (_Safe_vector &&__x) noexceptβ move-assignment operator energy, returns_Safe_vector &.constexpr _Safe_vector & operator= (const _Safe_vector &) noexceptβ copy-assignment operator energy, returns_Safe_vector &.
π Protected Attributes π
size_type _M_guaranteed_capacityβ the protected data member holding the guaranteed capacity. Iconic.
π¦ Detailed Description π¦
Template situation:
template<typename _SafeSequence, typename _BaseSequence>
class __gnu_debug::_Safe_vector< _SafeSequence, _BaseSequence >
So the class is class __gnu_debug::_Safe_vector< _SafeSequence, _BaseSequence > β quoted in the source as βBase class for Debug Mode vector.β π¦
It adds information about the guaranteed capacity, which is useful for detecting code that relies on non-portable implementation details of the libstdc++ reallocation policy. That's the whole point, iykyk. π
πΈ Author πΈ
Generated automatically by Doxygen for libstdc++ from the source code.
Cute sign-off, bestie: source/version is libstdc++, the manual section is 3cxx, and the footer text is libstd__gnu_debug::_..._BaseSequence >(3cxx). The date field isn't present in the supplied footer, so I'm not inventing one β keeping the facts safe, fr fr. π«Άβ¨
π¦ where this page comes from
- debian trixie: libstdc++-14-doc 14.2.0-19
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- ubuntu noble: libstdc++-14-doc 14.2.0-4ubuntu2~24.04.1
- 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