diff options
Diffstat (limited to 'libcxx/include/list')
-rw-r--r-- | libcxx/include/list | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/libcxx/include/list b/libcxx/include/list index 41d20f83cca..2fb90aae5fd 100644 --- a/libcxx/include/list +++ b/libcxx/include/list @@ -505,7 +505,7 @@ public: list(list&& __c); list(list&& __c, const allocator_type& __a); list& operator=(list&& __c); -#endif +#endif // _LIBCPP_MOVE list& operator=(initializer_list<value_type> __il) {assign(__il.begin(), __il.end()); return *this;} @@ -551,7 +551,7 @@ public: template <class... _Args> iterator emplace(const_iterator __p, _Args&&... __args); iterator insert(const_iterator __p, value_type&& __x); -#endif +#endif // _LIBCPP_MOVE void push_front(const value_type& __x); void push_back(const value_type& __x); @@ -584,12 +584,12 @@ public: #ifdef _LIBCPP_MOVE void splice(const_iterator __p, list&& __c, const_iterator __i) {splice(__p, __c, __i);} -#endif +#endif // _LIBCPP_MOVE void splice(const_iterator __p, list& __c, const_iterator __f, const_iterator __l); #ifdef _LIBCPP_MOVE void splice(const_iterator __p, list&& __c, const_iterator __f, const_iterator __l) {splice(__p, __c, __f, __l);} -#endif +#endif // _LIBCPP_MOVE void remove(const value_type& __x); template <class _Pred> void remove_if(_Pred __pred); @@ -605,7 +605,7 @@ public: #ifdef _LIBCPP_MOVE template <class _Comp> void merge(list&& __c, _Comp __comp) {merge(__c, __comp);} -#endif +#endif // _LIBCPP_MOVE void sort(); template <class _Comp> void sort(_Comp __comp); @@ -792,7 +792,7 @@ list<_Tp, _Alloc>::__move_assign(list& __c, true_type) splice(end(), __c); } -#endif +#endif // _LIBCPP_MOVE template <class _Tp, class _Alloc> template <class _InpIter> @@ -866,7 +866,7 @@ list<_Tp, _Alloc>::insert(const_iterator __p, size_type __n, const value_type& _ #ifndef _LIBCPP_NO_EXCEPTIONS try { -#endif +#endif // _LIBCPP_NO_EXCEPTIONS for (--__n; __n != 0; --__n, ++__e, ++__ds) { __hold.reset(__node_alloc_traits::allocate(__na, 1)); @@ -890,7 +890,7 @@ list<_Tp, _Alloc>::insert(const_iterator __p, size_type __n, const value_type& _ } throw; } -#endif +#endif // _LIBCPP_NO_EXCEPTIONS __link_nodes(const_cast<__node&>(*__p.__ptr_), *__r.__ptr_, *__e.__ptr_); base::__sz() += __ds; } @@ -919,7 +919,7 @@ list<_Tp, _Alloc>::insert(const_iterator __p, _InpIter __f, _InpIter __l, #ifndef _LIBCPP_NO_EXCEPTIONS try { -#endif +#endif // _LIBCPP_NO_EXCEPTIONS for (++__f; __f != __l; ++__f, ++__e, ++__ds) { __hold.reset(__node_alloc_traits::allocate(__na, 1)); @@ -943,7 +943,7 @@ list<_Tp, _Alloc>::insert(const_iterator __p, _InpIter __f, _InpIter __l, } throw; } -#endif +#endif // _LIBCPP_NO_EXCEPTIONS __link_nodes(const_cast<__node&>(*__p.__ptr_), *__r.__ptr_, *__e.__ptr_); base::__sz() += __ds; } @@ -1061,7 +1061,7 @@ list<_Tp, _Alloc>::insert(const_iterator __p, value_type&& __x) return iterator(__hold.release()); } -#endif +#endif // _LIBCPP_MOVE template <class _Tp, class _Alloc> void @@ -1142,7 +1142,7 @@ list<_Tp, _Alloc>::resize(size_type __n) #ifndef _LIBCPP_NO_EXCEPTIONS try { -#endif +#endif // _LIBCPP_NO_EXCEPTIONS for (--__n; __n != 0; --__n, ++__e, ++__ds) { __hold.reset(__node_alloc_traits::allocate(__na, 1)); @@ -1166,7 +1166,7 @@ list<_Tp, _Alloc>::resize(size_type __n) } throw; } -#endif +#endif // _LIBCPP_NO_EXCEPTIONS __link_nodes(static_cast<__node&>(base::__end_), *__r.__ptr_, *__e.__ptr_); base::__sz() += __ds; } @@ -1193,7 +1193,7 @@ list<_Tp, _Alloc>::resize(size_type __n, const value_type& __x) #ifndef _LIBCPP_NO_EXCEPTIONS try { -#endif +#endif // _LIBCPP_NO_EXCEPTIONS for (--__n; __n != 0; --__n, ++__e, ++__ds) { __hold.reset(__node_alloc_traits::allocate(__na, 1)); @@ -1217,10 +1217,10 @@ list<_Tp, _Alloc>::resize(size_type __n, const value_type& __x) } throw; } -#endif +#endif // _LIBCPP_NO_EXCEPTIONS __link_nodes(static_cast<__node&>(base::__end_), *__r.__ptr_, *__e.__ptr_); base::__sz() += __ds; - } + } } template <class _Tp, class _Alloc> |