STD::__DEBUG::MAP(3)
π NAME π
std::__debug::map< _Key, _Tp, _Compare, _Allocator > β bestie, it's a class std::map but with safety/checking/debug instrumentation baked in. She's the same girl, just wearing a helmet πͺβ¨
β¨ SYNOPSIS β¨
#include <map>
Inherits __gnu_debug::_Safe_container< _SafeContainer, _Alloc, _SafeBase, _IsCxx11AllocatorAware >.
π Public Types π
typedef _Allocator allocator_typetypedef __gnu_debug::_Safe_iterator< _Base_const_iterator, map > const_iteratortypedef _Base::const_pointer const_pointertypedef _Base::const_reference const_referencetypedef std::reverse_iterator< const_iterator > const_reverse_iteratortypedef _Base::difference_type difference_typetypedef __gnu_debug::_Safe_iterator< _Base_iterator, map > iteratortypedef _Compare key_comparetypedef _Key key_typetypedef _Tp mapped_typetypedef _Base::pointer pointertypedef _Base::reference referencetypedef std::reverse_iterator< iterator > reverse_iteratortypedef _Base::size_type size_typetypedef std::pair< const _Key, _Tp > value_type
πΈ Public Member Functions πΈ
Constructors first, because she's gotta arrive π
map (_Base_ref __x)template<typename _InputIterator> map (_InputIterator __first, _InputIterator __last, const _Compare &__comp=_Compare(), const _Allocator &__a=_Allocator())template<typename _InputIterator> map (_InputIterator __first, _InputIterator __last, const allocator_type &__a)map (const _Compare &__comp, const _Allocator &__a=_Allocator())map (const allocator_type &__a)map (const map &)=defaultmap (const map &__m, const __type_identity_t< allocator_type > &__a)map (initializer_list< value_type > __l, const _Compare &__c=_Compare(), const allocator_type &__a=allocator_type())map (initializer_list< value_type > __l, const allocator_type &__a)map (map &&)=defaultmap (map &&__m, const __type_identity_t< allocator_type > &__a) noexcept(noexcept(_Base(std::move(__m), __a)))
Then the base access, the iterators, the whole rest of the squad:
const _Base & _M_base () const noexcept_Base & _M_base () noexceptconst_iterator begin () const noexceptiterator begin () noexceptconst_iterator cbegin () const noexceptconst_iterator cend () const noexceptvoid clear () noexceptconst_reverse_iterator crbegin () const noexceptconst_reverse_iterator crend () const noexcepttemplate<typename... _Args> std::pair< iterator, bool > emplace (_Args &&... __args)template<typename... _Args> iterator emplace_hint (const_iterator __pos, _Args &&... __args)const_iterator end () const noexceptiterator end () noexceptstd::pair< iterator, iterator > equal_range (const key_type &__x)std::pair< const_iterator, const_iterator > equal_range (const key_type &__x) const_Base_iterator erase (_Base_const_iterator __position)template<__heterogeneous_tree_key< map > _Kt> size_type erase (_Kt &&__x)size_type erase (const key_type &__x)iterator erase (const_iterator __first, const_iterator __last)iterator erase (const_iterator __position)iterator erase (iterator __position)iterator find (const key_type &__x)const_iterator find (const key_type &__x) consttemplate<typename _InputIterator> void insert (_InputIterator __first, _InputIterator __last)template<typename _Pair, typename = typename std::enable_if<std::is_constructible<value_type, _Pair&&>::value>::type> std::pair< iterator, bool > insert (_Pair &&__x)std::pair< iterator, bool > insert (const value_type &__x)template<typename _Pair, typename = typename std::enable_if<std::is_constructible<value_type, _Pair&&>::value>::type> iterator insert (const_iterator __position, _Pair &&__x)iterator insert (const_iterator __position, const value_type &__x)iterator insert (const_iterator __position, value_type &&__x)void insert (std::initializer_list< value_type > __list)std::pair< iterator, bool > insert (value_type &&__x)iterator lower_bound (const key_type &__x)const_iterator lower_bound (const key_type &__x) constmap & operator= (const map &)=defaultmap & operator= (initializer_list< value_type > __l)map & operator= (map &&)=defaultconst_reverse_iterator rbegin () const noexceptreverse_iterator rbegin () noexceptconst_reverse_iterator rend () const noexceptreverse_iterator rend () noexceptvoid swap (map &__x) noexcept(/*conditional */)iterator upper_bound (const key_type &__x)const_iterator upper_bound (const key_type &__x) const
π Protected Member Functions π
constexpr void _M_swap (const _Safe_container &__x) const noexcept
π«Ά Friends π«Ά
template<typename _ItT, typename _SeqT, typename _CatT> class ::__gnu_debug::_Safe_iterator
π Detailed Description π
template<typename _Key, typename _Tp, typename _Compare = std::less<_Key>,
typename _Allocator = std::allocator<std::pair<const _Key, _Tp> >>
class std::__debug::map< _Key, _Tp, _Compare, _Allocator >
Class std::map with safety/checking/debug instrumentation. Like, that's the whole thing, that's the vibe β it's your regular map but she does a vibe check on every iterator before she lets you use it π₯π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. Not a human, not a bestie, just a robot doing its little job π€β¨
okay that's the whole page, no cap π this one came out of libstdc++ and honestly? she ate. go build something cute with it, bestie β 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.2.1-2.fc44
- fedora 44: libstdc++-docs 16.2.1-3.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
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms