Lines Matching refs:list

14     list synopsis
20 class list
38 list()
40 explicit list(const allocator_type& a);
41 explicit list(size_type n);
42 explicit list(size_type n, const allocator_type& a); // C++14
43 list(size_type n, const value_type& value);
44 list(size_type n, const value_type& value, const allocator_type& a);
46 list(Iter first, Iter last);
48 list(Iter first, Iter last, const allocator_type& a);
49 list(const list& x);
50 list(const list&, const allocator_type& a);
51 list(list&& x)
53 list(list&&, const allocator_type& a);
54 list(initializer_list<value_type>);
55 list(initializer_list<value_type>, const allocator_type& a);
57 ~list();
59 list& operator=(const list& x);
60 list& operator=(list&& x)
64 list& operator=(initializer_list<value_type>);
119 void swap(list&)
123 void splice(const_iterator position, list& x);
124 void splice(const_iterator position, list&& x);
125 void splice(const_iterator position, list& x, const_iterator i);
126 void splice(const_iterator position, list&& x, const_iterator i);
127 void splice(const_iterator position, list& x, const_iterator first,
129 void splice(const_iterator position, list&& x, const_iterator first,
138 void merge(list& x);
139 void merge(list&& x);
141 void merge(list& x, Compare comp);
143 void merge(list&& x, Compare comp);
152 list(InputIterator, InputIterator, Allocator = Allocator())
153 -> list<typename iterator_traits<InputIterator>::value_type, Allocator>; // C++17
156 bool operator==(const list<T,Alloc>& x, const list<T,Alloc>& y);
158 bool operator< (const list<T,Alloc>& x, const list<T,Alloc>& y);
160 bool operator!=(const list<T,Alloc>& x, const list<T,Alloc>& y);
162 bool operator> (const list<T,Alloc>& x, const list<T,Alloc>& y);
164 bool operator>=(const list<T,Alloc>& x, const list<T,Alloc>& y);
166 bool operator<=(const list<T,Alloc>& x, const list<T,Alloc>& y);
169 void swap(list<T,Alloc>& x, list<T,Alloc>& y)
173 typename list<T, Allocator>::size_type
174 erase(list<T, Allocator>& c, const U& value); // C++20
176 typename list<T, Allocator>::size_type
177 erase_if(list<T, Allocator>& c, Predicate pred); // C++20
221 // [list.syn]
314 template <class _Tp, class _Alloc = allocator<_Tp> > class _LIBCPP_TEMPLATE_VIS list;
336 template<class, class> friend class list;
384 "Attempted to dereference a non-dereferenceable list::iterator");
391 "Attempted to dereference a non-dereferenceable list::iterator");
399 "Attempted to increment a non-incrementable list::iterator");
410 "Attempted to decrement a non-decrementable list::iterator");
445 template<class, class> friend class list;
499 "Attempted to dereference a non-dereferenceable list::const_iterator");
506 "Attempted to dereference a non-dereferenceable list::const_iterator");
514 "Attempted to increment a non-incrementable list::const_iterator");
525 "Attempted to decrement a non-decrementable list::const_iterator");
762 "list::swap: Either propagate_on_container_swap must be true"
815 class _LIBCPP_TEMPLATE_VIS list
849 list()
855 explicit list(const allocator_type& __a) : base(__a)
859 explicit list(size_type __n);
861 explicit list(size_type __n, const allocator_type& __a);
863 list(size_type __n, const value_type& __x);
865 list(size_type __n, const value_type& __x, const allocator_type& __a) : base(__a)
873 list(_InpIter __f, _InpIter __l,
876 list(_InpIter __f, _InpIter __l, const allocator_type& __a,
879 list(const list& __c);
880 list(const list& __c, const __type_identity_t<allocator_type>& __a);
882 list& operator=(const list& __c);
884 list(initializer_list<value_type> __il);
885 list(initializer_list<value_type> __il, const allocator_type& __a);
888 list(list&& __c)
891 list(list&& __c, const __type_identity_t<allocator_type>& __a);
893 list& operator=(list&& __c)
899 list& operator=(initializer_list<value_type> __il)
962 _LIBCPP_ASSERT(!empty(), "list::front called on empty list");
968 _LIBCPP_ASSERT(!empty(), "list::front called on empty list");
974 _LIBCPP_ASSERT(!empty(), "list::back called on empty list");
980 _LIBCPP_ASSERT(!empty(), "list::back called on empty list");
1029 void swap(list& __c)
1049 void splice(const_iterator __p, list& __c);
1052 void splice(const_iterator __p, list&& __c) {splice(__p, __c);}
1054 void splice(const_iterator __p, list&& __c, const_iterator __i)
1057 void splice(const_iterator __p, list&& __c, const_iterator __f, const_iterator __l)
1060 void splice(const_iterator __p, list& __c, const_iterator __i);
1061 void splice(const_iterator __p, list& __c, const_iterator __f, const_iterator __l);
1070 void merge(list& __c);
1073 void merge(list&& __c) {merge(__c);}
1077 void merge(list&& __c, _Comp __comp) {merge(__c, __comp);}
1080 void merge(list& __c, _Comp __comp);
1122 void __move_assign(list& __c, true_type)
1124 void __move_assign(list& __c, false_type);
1133 list(_InputIterator, _InputIterator)
1134 -> list<__iter_value_type<_InputIterator>, _Alloc>;
1141 list(_InputIterator, _InputIterator, _Alloc)
1142 -> list<__iter_value_type<_InputIterator>, _Alloc>;
1149 list<_Tp, _Alloc>::__link_nodes(__link_pointer __p, __link_pointer __f, __link_pointer __l)
1157 // Link in nodes [__f, __l] at the front of the list
1161 list<_Tp, _Alloc>::__link_nodes_at_front(__link_pointer __f, __link_pointer __l)
1169 // Link in nodes [__f, __l] at the back of the list
1173 list<_Tp, _Alloc>::__link_nodes_at_back(__link_pointer __f, __link_pointer __l)
1184 typename list<_Tp, _Alloc>::iterator
1185 list<_Tp, _Alloc>::__iterator(size_type __n)
1192 list<_Tp, _Alloc>::list(size_type __n)
1205 list<_Tp, _Alloc>::list(size_type __n, const allocator_type& __a) : base(__a)
1214 list<_Tp, _Alloc>::list(size_type __n, const value_type& __x)
1223 list<_Tp, _Alloc>::list(_InpIter __f, _InpIter __l,
1233 list<_Tp, _Alloc>::list(_InpIter __f, _InpIter __l, const allocator_type& __a,
1243 list<_Tp, _Alloc>::list(const list& __c)
1252 list<_Tp, _Alloc>::list(const list& __c, const __type_identity_t<allocator_type>& __a)
1263 list<_Tp, _Alloc>::list(initializer_list<value_type> __il, const allocator_type& __a)
1273 list<_Tp, _Alloc>::list(initializer_list<value_type> __il)
1282 inline list<_Tp, _Alloc>::list(list&& __c)
1291 list<_Tp, _Alloc>::list(list&& __c, const __type_identity_t<allocator_type>& __a)
1306 list<_Tp, _Alloc>&
1307 list<_Tp, _Alloc>::operator=(list&& __c)
1319 list<_Tp, _Alloc>::__move_assign(list& __c, false_type)
1332 list<_Tp, _Alloc>::__move_assign(list& __c, true_type)
1344 list<_Tp, _Alloc>&
1345 list<_Tp, _Alloc>::operator=(const list& __c)
1358 list<_Tp, _Alloc>::assign(_InpIter __f, _InpIter __l,
1374 list<_Tp, _Alloc>::assign(size_type __n, const value_type& __x)
1390 list<_Tp, _Alloc>::get_allocator() const _NOEXCEPT
1396 typename list<_Tp, _Alloc>::iterator
1397 list<_Tp, _Alloc>::insert(const_iterator __p, const value_type& __x)
1400 … "list::insert(iterator, x) called with an iterator not referring to this list");
1410 typename list<_Tp, _Alloc>::iterator
1411 list<_Tp, _Alloc>::insert(const_iterator __p, size_type __n, const value_type& __x)
1414 … "list::insert(iterator, n, x) called with an iterator not referring to this list");
1462 typename list<_Tp, _Alloc>::iterator
1463 list<_Tp, _Alloc>::insert(const_iterator __p, _InpIter __f, _InpIter __l,
1467 … "list::insert(iterator, range) called with an iterator not referring to this list");
1515 list<_Tp, _Alloc>::push_front(const value_type& __x)
1528 list<_Tp, _Alloc>::push_back(const value_type& __x)
1542 list<_Tp, _Alloc>::push_front(value_type&& __x)
1554 list<_Tp, _Alloc>::push_back(value_type&& __x)
1567 typename list<_Tp, _Alloc>::reference
1571 list<_Tp, _Alloc>::emplace_front(_Args&&... __args)
1588 typename list<_Tp, _Alloc>::reference
1592 list<_Tp, _Alloc>::emplace_back(_Args&&... __args)
1609 typename list<_Tp, _Alloc>::iterator
1610 list<_Tp, _Alloc>::emplace(const_iterator __p, _Args&&... __args)
1613 … "list::emplace(iterator, args...) called with an iterator not referring to this list");
1625 typename list<_Tp, _Alloc>::iterator
1626 list<_Tp, _Alloc>::insert(const_iterator __p, value_type&& __x)
1629 … "list::insert(iterator, x) called with an iterator not referring to this list");
1644 list<_Tp, _Alloc>::pop_front()
1646 _LIBCPP_ASSERT(!empty(), "list::pop_front() called with empty list");
1673 list<_Tp, _Alloc>::pop_back()
1675 _LIBCPP_ASSERT(!empty(), "list::pop_back() called on an empty list");
1701 typename list<_Tp, _Alloc>::iterator
1702 list<_Tp, _Alloc>::erase(const_iterator __p)
1705 … "list::erase(iterator) called with an iterator not referring to this list");
1707 "list::erase(iterator) called with a non-dereferenceable iterator");
1735 typename list<_Tp, _Alloc>::iterator
1736 list<_Tp, _Alloc>::erase(const_iterator __f, const_iterator __l)
1739 … "list::erase(iterator, iterator) called with an iterator not referring to this list");
1741 … "list::erase(iterator, iterator) called with an iterator not referring to this list");
1776 list<_Tp, _Alloc>::resize(size_type __n)
1825 list<_Tp, _Alloc>::resize(size_type __n, const value_type& __x)
1875 list<_Tp, _Alloc>::splice(const_iterator __p, list& __c)
1878 "list::splice(iterator, list) called with this == &list");
1880 … "list::splice(iterator, list) called with an iterator not referring to this list");
1914 list<_Tp, _Alloc>::splice(const_iterator __p, list& __c, const_iterator __i)
1917 …"list::splice(iterator, list, iterator) called with the first iterator not referring to this list"…
1919 …"list::splice(iterator, list, iterator) called with the second iterator not referring to the list
1921 … "list::splice(iterator, list, iterator) called with the second iterator not dereferenceable");
1966 list<_Tp, _Alloc>::splice(const_iterator __p, list& __c, const_iterator __f, const_iterator __l)
1969 …"list::splice(iterator, list, iterator, iterator) called with first iterator not referring to this…
1971 …"list::splice(iterator, list, iterator, iterator) called with second iterator not referring to the…
1973 …"list::splice(iterator, list, iterator, iterator) called with third iterator not referring to the
1975 "list::splice(iterator, list, iterator, iterator)"
2019 typename list<_Tp, _Alloc>::__remove_return_type
2020 list<_Tp, _Alloc>::remove(const value_type& __x)
2022 list<_Tp, _Alloc> __deleted_nodes(get_allocator()); // collect the nodes we're removing
2044 typename list<_Tp, _Alloc>::__remove_return_type
2045 list<_Tp, _Alloc>::remove_if(_Pred __pred)
2047 list<_Tp, _Alloc> __deleted_nodes(get_allocator()); // collect the nodes we're removing
2069 typename list<_Tp, _Alloc>::__remove_return_type
2070 list<_Tp, _Alloc>::unique(_BinaryPred __binary_pred)
2072 list<_Tp, _Alloc> __deleted_nodes(get_allocator()); // collect the nodes we're removing
2090 list<_Tp, _Alloc>::merge(list& __c)
2098 list<_Tp, _Alloc>::merge(list& __c, _Comp __comp)
2152 list<_Tp, _Alloc>::sort()
2161 list<_Tp, _Alloc>::sort(_Comp __comp)
2168 typename list<_Tp, _Alloc>::iterator
2169 list<_Tp, _Alloc>::__sort(iterator __f1, iterator __e2, size_type __n, _Comp& __comp)
2231 list<_Tp, _Alloc>::reverse() _NOEXCEPT
2247 list<_Tp, _Alloc>::__invariants() const
2256 list<_Tp, _Alloc>::__dereferenceable(const const_iterator* __i) const
2263 list<_Tp, _Alloc>::__decrementable(const const_iterator* __i) const
2270 list<_Tp, _Alloc>::__addable(const const_iterator*, ptrdiff_t) const
2277 list<_Tp, _Alloc>::__subscriptable(const const_iterator*, ptrdiff_t) const
2287 operator==(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y)
2295 operator< (const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y)
2303 operator!=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y)
2311 operator> (const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y)
2319 operator>=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y)
2327 operator<=(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y)
2335 swap(list<_Tp, _Alloc>& __x, list<_Tp, _Alloc>& __y)
2343 inline _LIBCPP_INLINE_VISIBILITY typename list<_Tp, _Allocator>::size_type
2344 erase_if(list<_Tp, _Allocator>& __c, _Predicate __pred) {
2349 inline _LIBCPP_INLINE_VISIBILITY typename list<_Tp, _Allocator>::size_type
2350 erase(list<_Tp, _Allocator>& __c, const _Up& __v) {
2355 inline constexpr bool __format::__enable_insertable<std::list<char>> = true;
2358 inline constexpr bool __format::__enable_insertable<std::list<wchar_t>> = true;