__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 that std::ptrdiff_t life.
  • 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_t edition.
  • 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 for std::__false_type.
  • template<class _Integer > void _M_assign_dispatch (_Integer __n, _Integer __val, std::__true_type) β€” assign-dispatch overload for std::__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 __n copies 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 __n copies 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 another slist.
  • 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 another slist at a position.
  • void splice (iterator __pos, slist &__x, iterator __first, iterator __last) β€” splice a range from another slist.
  • void splice (iterator __pos, slist &__x, iterator __i) β€” splice one item from another slist.
  • 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 another slist.
  • void swap (slist &__x) β€” swap with another slist.
  • 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