__GNU_CXX::SLIST(3cxx)
π NAME π
__gnu_cxx::slist< _Tp, _Alloc > β okay bestie, this is the manual page for that exact class, and the page also says itβs an SGI extension, so yes, she has lore. π
β¨
β¨ SYNOPSIS β¨
#include <slist>
Inherits __gnu_cxx::_Slist_base< _Tp, _Alloc >.
πΈ Public Types πΈ
Type-glossary era, no cap. Every one is exactly as printed:
typedef _Base::allocator_type allocator_typeβ the allocator type, straight from_Base.typedef _Slist_iterator< _Tp, const _Tp &, const _Tp * > const_iteratorβ the const iterator type.typedef const value_type * const_pointerβ const pointer type.typedef const value_type & const_referenceβ const reference type.typedef std::ptrdiff_t difference_typeβ difference type, living thatstd::ptrdiff_tlife.typedef _Slist_iterator< _Tp, _Tp &, _Tp * > iteratorβ the regular iterator type.typedef value_type * pointerβ pointer type.typedef value_type & referenceβ reference type.typedef std::size_t size_typeβ size type,std::size_tedition.typedef _Tp value_typeβ value type, iconic as ever.
π¦ Public Member Functions π¦
Deep breath, bestie β hereβs the whole member-function roster, signatures kept character-for-character. I did not rename, merge, or βfixβ anything. π«Ά
template<class _InputIterator > slist (_InputIterator __first, _InputIterator __last, const allocator_type &__a=allocator_type())β iterator-range constructor.slist (const allocator_type &__a=allocator_type())β allocator constructor.slist (const slist &__x)β copy constructor.slist (size_type __n)β size constructor.slist (size_type __n, const value_type &__x, const allocator_type &__a=allocator_type())β size-plus-value constructor, with allocator.template<class _InputIterator > void _M_assign_dispatch (_InputIterator __first, _InputIterator __last, std::__false_type)β assign-dispatch overload forstd::__false_type.template<class _Integer > void _M_assign_dispatch (_Integer __n, _Integer __val, std::__true_type)β assign-dispatch overload forstd::__true_type.void _M_fill_assign (size_type __n, const _Tp &__val)β fill-assign helper.template<class _InputIterator > void assign (_InputIterator __first, _InputIterator __last)β assign from an iterator range.void assign (size_type __n, const _Tp &__val)β assign from a count and value.iterator before_begin ()β before-begin iterator.const_iterator before_begin () constβ const before-begin iterator.iterator begin ()β begin iterator.const_iterator begin () constβ const begin iterator.void clear ()β clear it out.bool empty () constβ emptiness check.iterator end ()β end iterator.const_iterator end () constβ const end iterator.iterator erase (iterator __first, iterator __last)β erase a range.iterator erase (iterator __pos)β erase one position.iterator erase_after (iterator __before_first, iterator __last)β erase-after range.iterator erase_after (iterator __pos)β erase-after one position.reference front ()β front reference.const_reference front () constβ const front reference.allocator_type get_allocator () constβ get the allocator.iterator insert (iterator __pos)β insert at a position.template<class _InIterator > void insert (iterator __pos, _InIterator __first, _InIterator __last)β insert an iterator range at a position.iterator insert (iterator __pos, const value_type &__x)β insert a value at a position.void insert (iterator __pos, size_type __n, const value_type &__x)β insert__ncopies of a value at a position.iterator insert_after (iterator __pos)β insert-after at a position.template<class _InIterator > void insert_after (iterator __pos, _InIterator __first, _InIterator __last)β insert-after an iterator range.iterator insert_after (iterator __pos, const value_type &__x)β insert-after a value.void insert_after (iterator __pos, size_type __n, const value_type &__x)β insert-after__ncopies of a value.size_type max_size () constβ max size check.template<class _StrictWeakOrdering > void merge (slist &, _StrictWeakOrdering)β merge with a strict weak ordering.void merge (slist &__x)β merge anotherslist.slist & operator= (const slist &__x)β assignment operator.void pop_front ()β pop the front.iterator previous (const_iterator __pos)β previous-position iterator.const_iterator previous (const_iterator __pos) constβ const previous-position iterator.void push_front ()β push a default front.void push_front (const value_type &__x)β push a value to the front.void remove (const _Tp &__val)β remove a matching value.template<class _Predicate > void remove_if (_Predicate __pred)β remove if the predicate says so.void resize (size_type new_size)β resize.void resize (size_type new_size, const _Tp &__x)β resize with a fill value.void reverse ()β reverse it.size_type size () constβ size check.void sort ()β sort.template<class _StrictWeakOrdering > void sort (_StrictWeakOrdering __comp)β sort with a strict weak ordering.void splice (iterator __pos, slist &__x)β splice anotherslistat a position.void splice (iterator __pos, slist &__x, iterator __first, iterator __last)β splice a range from anotherslist.void splice (iterator __pos, slist &__x, iterator __i)β splice one item from anotherslist.void splice_after (iterator __pos, iterator __before_first, iterator __before_last)β splice-after a range.void splice_after (iterator __pos, iterator __prev)β splice-after one previous position.void splice_after (iterator __pos, slist &__x)β splice-after anotherslist.void swap (slist &__x)β swap with anotherslist.void unique ()β unique-ify.template<class _BinaryPredicate > void unique (_BinaryPredicate __pred)β unique-ify with a binary predicate.
π 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
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
Cute sign-off: source/version libstdc++, manual section 3cxx, and the footer date is literally not showing up in the original β timeless icon behavior, fr fr. π
β¨
π¦ where this page comes from
- ubuntu noble: libstdc++-12-doc 12.3.0-17ubuntu1
- ubuntu noble: libstdc++-13-doc 13.2.0-23ubuntu4
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms