__GNU_CXX::SLIST(3)
π NAME π
__gnu_cxx::slist< _Tp, _Alloc > β bestie, it's a singly linked list, and we're reading about it in the Library Functions Manual (section 3, library functions, iykyk). π¦
β¨ SYNOPSIS β¨
#include <slist>
π Public Types π
The whole typedef roster, no cap:
typedef _Base::allocator_type allocator_typetypedef _Slist_iterator< _Tp, const _Tp &, const _Tp * > const_iteratortypedef const value_type * const_pointertypedef const value_type & const_referencetypedef std::ptrdiff_t difference_typetypedef _Slist_iterator< _Tp, _Tp &, _Tp * > iteratortypedef value_type * pointertypedef value_type & referencetypedef std::size_t size_typetypedef _Tp value_type
πΈ Public Member Functions πΈ
Okay so this is the whole list, and yes, we're doing all of them. No skipping. Periodt. π
template<class _InputIterator> slist (_InputIterator __first, _InputIterator __last, const allocator_type &__a=allocator_type())slist (const allocator_type &__a=allocator_type())slist (const slist &__x)slist (size_type __n)slist (size_type __n, const value_type &__x, const allocator_type &__a=allocator_type())template<class _InputIterator> void _M_assign_dispatch (_InputIterator __first, _InputIterator __last, std::__false_type)template<class _Integer> void _M_assign_dispatch (_Integer __n, _Integer __val, std::__true_type)void _M_fill_assign (size_type __n, const _Tp &__val)template<class _InputIterator> void assign (_InputIterator __first, _InputIterator __last)void assign (size_type __n, const _Tp &__val)iterator before_begin ()const_iterator before_begin () constiterator begin ()const_iterator begin () constvoid clear ()bool empty () constiterator end ()const_iterator end () constiterator erase (iterator __first, iterator __last)iterator erase (iterator __pos)iterator erase_after (iterator __before_first, iterator __last)iterator erase_after (iterator __pos)reference front ()const_reference front () constallocator_type get_allocator () constiterator insert (iterator __pos)template<class _InIterator> void insert (iterator __pos, _InIterator __first, _InIterator __last)iterator insert (iterator __pos, const value_type &__x)void insert (iterator __pos, size_type __n, const value_type &__x)iterator insert_after (iterator __pos)template<class _InIterator> void insert_after (iterator __pos, _InIterator __first, _InIterator __last)iterator insert_after (iterator __pos, const value_type &__x)void insert_after (iterator __pos, size_type __n, const value_type &__x)size_type max_size () consttemplate<class _StrictWeakOrdering> void merge (slist &, _StrictWeakOrdering)void merge (slist &__x)slist & operator= (const slist &__x)void pop_front ()iterator previous (const_iterator __pos)const_iterator previous (const_iterator __pos) constvoid push_front ()void push_front (const value_type &__x)void remove (const _Tp &__val)template<class _Predicate> void remove_if (_Predicate __pred)void resize (size_type new_size)void resize (size_type new_size, const _Tp &__x)void reverse ()size_type size () constvoid sort ()template<class _StrictWeakOrdering> void sort (_StrictWeakOrdering __comp)void splice (iterator __pos, slist &__x)void splice (iterator __pos, slist &__x, iterator __first, iterator __last)void splice (iterator __pos, slist &__x, iterator __i)void splice_after (iterator __pos, iterator __before_first, iterator __before_last)void splice_after (iterator __pos, iterator __prev)void splice_after (iterator __pos, slist &__x)void swap (slist &__x)void unique ()template<class _BinaryPredicate> void unique (_BinaryPredicate __pred)
π Static Private Member Functions π
Not for you, bestie β private, mind your business π
static constexpr size_type max_size (const _Alloc &__a) noexceptβ The maximum supported allocation size.
π« Detailed Description π«
template<class _Tp, class _Alloc = std::allocator<_Tp>>
class __gnu_cxx::slist< _Tp, _Alloc >
"This is an SGI extension."
Todo β Needs documentation! See http://gcc.gnu.org/onlinedocs/libstdc++/manual/documentation_style.html
Not the docs saying "needs documentation" in the actual documentation π iconic behaviour honestly.
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
and that's the whole page, bestie β this one's a libstdc++ page, hanging out in section 3 of the Library Functions Manual, and yes, a robot named Doxygen wrote it for us. slay πβ¨π
π¦ 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
- 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