STD::__DEBUG::SET(3)

πŸ’– NAME πŸ’–

okay so bestie, we're in the Library Functions Manual, section 3, and this entire page is about std::__debug::set< _Key, _Compare, _Allocator > β€” literally Class std::set with safety/checking/debug instrumentation. that's the name, that's the vibe, periodt. πŸ’…

✨ SYNOPSIS ✨

so you start with:

#include <set>

and it Inherits __gnu_debug::_Safe_container< _SafeContainer, _Alloc, _SafeBase, _IsCxx11AllocatorAware >.

🌸 Public Types 🌸

here's the whole type roster, exact, no cap:

typedef _Allocator allocator_type
typedef __gnu_debug::_Safe_iterator< _Base_const_iterator, set >
    const_iterator
typedef _Base::const_pointer const_pointer
typedef _Base::const_reference const_reference
typedef std::reverse_iterator< const_iterator > const_reverse_iterator
typedef _Base::difference_type difference_type
typedef __gnu_debug::_Safe_iterator< _Base_iterator, set > iterator
typedef _Compare key_compare
typedef _Key key_type
typedef _Base::pointer pointer
typedef _Base::reference reference
typedef std::reverse_iterator< iterator > reverse_iterator
typedef _Base::size_type size_type
typedef _Compare value_compare
typedef _Key value_type

πŸŽ€ Public Member Functions πŸŽ€

okay this is the big one. every single constructor, member, operator, all of it. bestie, I'm not skipping a single one:

set (_Base_ref __x)
template<typename _InputIterator> set (_InputIterator __first,
    _InputIterator __last, const _Compare &__comp=_Compare(), const
    _Allocator &__a=_Allocator())
template<typename _InputIterator> set (_InputIterator __first,
    _InputIterator __last, const allocator_type &__a)
set (const _Compare &__comp, const _Allocator &__a=_Allocator())
set (const allocator_type &__a)
set (const set &)=default
set (const set &__x, const __type_identity_t< allocator_type > &__a)
set (initializer_list< value_type > __l, const _Compare
    &__comp=_Compare(), const allocator_type &__a=allocator_type())
set (initializer_list< value_type > __l, const allocator_type &__a)
set (set &&)=default
set (set &&__x, const __type_identity_t< allocator_type > &__a)
    noexcept(noexcept(_Base(std::move(__x), __a)))
const _Base & _M_base () const noexcept
_Base & _M_base () noexcept
const_iterator begin () const noexcept
iterator begin () noexcept
const_iterator cbegin () const noexcept
const_iterator cend () const noexcept
void clear () noexcept
const_reverse_iterator crbegin () const noexcept
const_reverse_iterator crend () const noexcept
template<typename... _Args> std::pair< iterator, bool > emplace (_Args
    &&... __args)
template<typename... _Args> iterator emplace_hint (const_iterator __pos,
    _Args &&... __args)
const_iterator end () const noexcept
iterator end () noexcept
std::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< set > _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 find (const key_type &__x)
const_iterator find (const key_type &__x) const
template<typename _InputIterator> void insert (_InputIterator __first,
    _InputIterator __last)
template<__heterogeneous_tree_key< set > _Kt> std::pair< iterator, bool
    > insert (_Kt &&__x)
std::pair< iterator, bool > insert (const value_type &__x)
template<__heterogeneous_tree_key< set > _Kt> iterator insert
    (const_iterator __position, _Kt &&__x)
iterator insert (const_iterator __position, const value_type &__x)
iterator insert (const_iterator __position, value_type &&__x)
void insert (initializer_list< value_type > __l)
std::pair< iterator, bool > insert (value_type &&__x)
iterator lower_bound (const key_type &__x)
const_iterator lower_bound (const key_type &__x) const
set & operator= (const set &)=default
set & operator= (initializer_list< value_type > __l)
set & operator= (set &&)=default
const_reverse_iterator rbegin () const noexcept
reverse_iterator rbegin () noexcept
const_reverse_iterator rend () const noexcept
reverse_iterator rend () noexcept
void swap (set &__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 🌈

so the template head is:

template<typename _Key, typename _Compare = std::less<_Key>, typename
    _Allocator = std::allocator<_Key>>
    class std::__debug::set< _Key, _Compare, _Allocator >"Class std::set
    with safety/checking/debug instrumentation.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. (that's the whole author section, bestie, it's literally generated.)


and that's a wrap, bestie! this footer energy is source/version: libstdc++, and the date slot is literally empty here, so there's no date to spill. the footer also echoes the page name std::__deb...Allocator >(3). stay safe, stay debugged, 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