Lines Matching refs:iterator
31 typedef implementation-defined iterator;
35 typedef reverse_iterator<iterator> reverse_iterator;
72 iterator begin() noexcept;
74 iterator end() noexcept;
105 iterator emplace(const_iterator position, Args&&... args);
106 iterator insert(const_iterator position, const value_type& x);
107 iterator insert(const_iterator position, value_type&& x);
108 iterator insert(const_iterator position, size_type n, const value_type& x);
110 iterator insert(const_iterator position, Iter first, Iter last);
111 iterator insert(const_iterator position, initializer_list<value_type> il);
113 iterator erase(const_iterator position);
114 iterator erase(const_iterator position, const_iterator last);
188 #include <iterator>
360 "Attempted to dereference a non-dereferenceable list::iterator");
369 "Attempted to dereference a non-dereferenceable list::iterator");
379 "Attempted to increment a non-incrementable list::iterator");
392 "Attempted to decrement a non-decrementable list::iterator");
549 typedef __list_iterator<value_type, __void_pointer> iterator;
614 iterator begin() _NOEXCEPT
617 return iterator(__end_.__next_, this);
619 return iterator(__end_.__next_);
632 iterator end() _NOEXCEPT
635 return iterator(__end_as_link(), this);
637 return iterator(__end_as_link());
858 typedef typename base::iterator iterator;
860 typedef _VSTD::reverse_iterator<iterator> reverse_iterator;
945 iterator begin() _NOEXCEPT {return base::begin();}
949 iterator end() _NOEXCEPT {return base::end();}
1018 iterator emplace(const_iterator __p, _Args&&... __args);
1020 iterator insert(const_iterator __p, value_type&& __x);
1023 iterator insert(const_iterator __p, initializer_list<value_type> __il)
1039 iterator insert(const_iterator __p, const value_type& __x);
1040 iterator insert(const_iterator __p, size_type __n, const value_type& __x);
1042 iterator insert(const_iterator __p, _InpIter __f, _InpIter __l,
1060 iterator erase(const_iterator __p);
1061 iterator erase(const_iterator __f, const_iterator __l);
1135 iterator __iterator(size_type __n);
1137 static iterator __sort(iterator __f1, iterator __e2, size_type __n, _Comp& __comp);
1199 typename list<_Tp, _Alloc>::iterator
1347 typedef move_iterator<iterator> _Ip;
1371 typedef move_iterator<iterator> _Ip;
1409 iterator __i = begin();
1410 iterator __e = end();
1426 iterator __i = begin();
1427 iterator __e = end();
1448 typename list<_Tp, _Alloc>::iterator
1453 "list::insert(iterator, x) called with an iterator not"
1462 return iterator(__hold.release()->__as_link(), this);
1464 return iterator(__hold.release()->__as_link());
1469 typename list<_Tp, _Alloc>::iterator
1474 "list::insert(iterator, n, x) called with an iterator not"
1476 iterator __r(__p.__ptr_, this);
1478 iterator __r(__p.__ptr_);
1488 __r = iterator(__hold->__as_link(), this);
1490 __r = iterator(__hold->__as_link());
1493 iterator __e = __r;
1518 __e = iterator(__prev, this);
1520 __e = iterator(__prev);
1534 typename list<_Tp, _Alloc>::iterator
1540 "list::insert(iterator, range) called with an iterator not"
1542 iterator __r(__p.__ptr_, this);
1544 iterator __r(__p.__ptr_);
1554 __r = iterator(__hold.get()->__as_link(), this);
1556 __r = iterator(__hold.get()->__as_link());
1559 iterator __e = __r;
1584 __e = iterator(__prev, this);
1586 __e = iterator(__prev);
1694 typename list<_Tp, _Alloc>::iterator
1699 "list::emplace(iterator, args...) called with an iterator not"
1710 return iterator(__nl, this);
1712 return iterator(__nl);
1717 typename list<_Tp, _Alloc>::iterator
1722 "list::insert(iterator, x) called with an iterator not"
1733 return iterator(__nl, this);
1735 return iterator(__nl);
1755 iterator* __i = static_cast<iterator*>((*__p)->__i_);
1784 iterator* __i = static_cast<iterator*>((*__p)->__i_);
1800 typename list<_Tp, _Alloc>::iterator
1805 "list::erase(iterator) called with an iterator not"
1809 "list::erase(iterator) called with a non-dereferenceable iterator");
1820 iterator* __i = static_cast<iterator*>((*__ip)->__i_);
1834 return iterator(__r, this);
1836 return iterator(__r);
1841 typename list<_Tp, _Alloc>::iterator
1846 "list::erase(iterator, iterator) called with an iterator not"
1849 "list::erase(iterator, iterator) called with an iterator not"
1866 iterator* __i = static_cast<iterator*>((*__p)->__i_);
1882 return iterator(__l.__ptr_, this);
1884 return iterator(__l.__ptr_);
1903 iterator __r = iterator(__hold.release()->__as_link(), this);
1905 iterator __r = iterator(__hold.release()->__as_link());
1907 iterator __e = __r;
1932 __e = iterator(__prev, this);
1934 __e = iterator(__prev);
1961 iterator __r = iterator(__nl, this);
1963 iterator __r = iterator(__nl);
1965 iterator __e = __r;
1990 __e = iterator(__prev, this);
1992 __e = iterator(__prev);
2008 "list::splice(iterator, list) called with this == &list");
2011 "list::splice(iterator, list) called with an iterator not"
2030 iterator* __i = static_cast<iterator*>((*__ip)->__i_);
2051 "list::splice(iterator, list, iterator) called with the first iterator"
2054 "list::splice(iterator, list, iterator) called with the second iterator"
2057 "list::splice(iterator, list, iterator) called with the second iterator"
2075 iterator* __j = static_cast<iterator*>((*__ip)->__i_);
2096 "list::splice(iterator, list, iterator, iterator) called with first iterator not"
2099 "list::splice(iterator, list, iterator, iterator) called with second iterator not"
2102 "list::splice(iterator, list, iterator, iterator) called with third iterator not"
2108 "list::splice(iterator, list, iterator, iterator)"
2109 " called with the first iterator within the range"
2134 iterator* __j = static_cast<iterator*>((*__ip)->__i_);
2183 for (iterator __i = begin(), __e = end(); __i != __e;)
2187 iterator __j = _VSTD::next(__i);
2208 for (iterator __i = begin(), __e = end(); __i != __e;)
2210 iterator __j = _VSTD::next(__i);
2237 iterator __f1 = begin();
2238 iterator __e1 = end();
2239 iterator __f2 = __c.begin();
2240 iterator __e2 = __c.end();
2246 iterator __m2 = _VSTD::next(__f2);
2270 iterator* __i = static_cast<iterator*>((*__p)->__i_);
2303 typename list<_Tp, _Alloc>::iterator
2304 list<_Tp, _Alloc>::__sort(iterator __f1, iterator __e2, size_type __n, _Comp& __comp)
2322 iterator __e1 = _VSTD::next(__f1, __n2);
2323 iterator __r = __f1 = __sort(__f1, __e1, __n2, __comp);
2324 iterator __f2 = __e1 = __sort(__e1, __e2, __n - __n2, __comp);
2327 iterator __m2 = _VSTD::next(__f2);
2345 iterator __m2 = _VSTD::next(__f2);
2370 iterator __e = end();
2371 for (iterator __i = begin(); __i.__ptr_ != __e.__ptr_;)