Deleted Added
full compact
list (321369) list (326496)
1// -*- C++ -*-
2//===---------------------------- list ------------------------------------===//
3//
4// The LLVM Compiler Infrastructure
5//
6// This file is dual licensed under the MIT and the University of Illinois Open
7// Source Licenses. See LICENSE.TXT for details.
8//

--- 978 unchanged lines hidden (view full) ---

987 _LIBCPP_INLINE_VISIBILITY
988 iterator insert(const_iterator __p, initializer_list<value_type> __il)
989 {return insert(__p, __il.begin(), __il.end());}
990#endif // _LIBCPP_CXX03_LANG
991
992 void push_front(const value_type& __x);
993 void push_back(const value_type& __x);
994
1// -*- C++ -*-
2//===---------------------------- list ------------------------------------===//
3//
4// The LLVM Compiler Infrastructure
5//
6// This file is dual licensed under the MIT and the University of Illinois Open
7// Source Licenses. See LICENSE.TXT for details.
8//

--- 978 unchanged lines hidden (view full) ---

987 _LIBCPP_INLINE_VISIBILITY
988 iterator insert(const_iterator __p, initializer_list<value_type> __il)
989 {return insert(__p, __il.begin(), __il.end());}
990#endif // _LIBCPP_CXX03_LANG
991
992 void push_front(const value_type& __x);
993 void push_back(const value_type& __x);
994
995#ifndef _LIBCPP_CXX03_LANG
996 template <class _Arg>
997 _LIBCPP_INLINE_VISIBILITY
998 void __emplace_back(_Arg&& __arg) { emplace_back(_VSTD::forward<_Arg>(__arg)); }
999#else
1000 _LIBCPP_INLINE_VISIBILITY
1001 void __emplace_back(value_type const& __arg) { push_back(__arg); }
1002#endif
1003
995 iterator insert(const_iterator __p, const value_type& __x);
996 iterator insert(const_iterator __p, size_type __n, const value_type& __x);
997 template <class _InpIter>
998 iterator insert(const_iterator __p, _InpIter __f, _InpIter __l,
999 typename enable_if<__is_input_iterator<_InpIter>::value>::type* = 0);
1000
1001 _LIBCPP_INLINE_VISIBILITY
1002 void swap(list& __c)

--- 181 unchanged lines hidden (view full) ---

1184template <class _InpIter>
1185list<_Tp, _Alloc>::list(_InpIter __f, _InpIter __l,
1186 typename enable_if<__is_input_iterator<_InpIter>::value>::type*)
1187{
1188#if _LIBCPP_DEBUG_LEVEL >= 2
1189 __get_db()->__insert_c(this);
1190#endif
1191 for (; __f != __l; ++__f)
1004 iterator insert(const_iterator __p, const value_type& __x);
1005 iterator insert(const_iterator __p, size_type __n, const value_type& __x);
1006 template <class _InpIter>
1007 iterator insert(const_iterator __p, _InpIter __f, _InpIter __l,
1008 typename enable_if<__is_input_iterator<_InpIter>::value>::type* = 0);
1009
1010 _LIBCPP_INLINE_VISIBILITY
1011 void swap(list& __c)

--- 181 unchanged lines hidden (view full) ---

1193template <class _InpIter>
1194list<_Tp, _Alloc>::list(_InpIter __f, _InpIter __l,
1195 typename enable_if<__is_input_iterator<_InpIter>::value>::type*)
1196{
1197#if _LIBCPP_DEBUG_LEVEL >= 2
1198 __get_db()->__insert_c(this);
1199#endif
1200 for (; __f != __l; ++__f)
1192 push_back(*__f);
1201 __emplace_back(*__f);
1193}
1194
1195template <class _Tp, class _Alloc>
1196template <class _InpIter>
1197list<_Tp, _Alloc>::list(_InpIter __f, _InpIter __l, const allocator_type& __a,
1198 typename enable_if<__is_input_iterator<_InpIter>::value>::type*)
1199 : base(__a)
1200{
1201#if _LIBCPP_DEBUG_LEVEL >= 2
1202 __get_db()->__insert_c(this);
1203#endif
1204 for (; __f != __l; ++__f)
1202}
1203
1204template <class _Tp, class _Alloc>
1205template <class _InpIter>
1206list<_Tp, _Alloc>::list(_InpIter __f, _InpIter __l, const allocator_type& __a,
1207 typename enable_if<__is_input_iterator<_InpIter>::value>::type*)
1208 : base(__a)
1209{
1210#if _LIBCPP_DEBUG_LEVEL >= 2
1211 __get_db()->__insert_c(this);
1212#endif
1213 for (; __f != __l; ++__f)
1205 push_back(*__f);
1214 __emplace_back(*__f);
1206}
1207
1208template <class _Tp, class _Alloc>
1209list<_Tp, _Alloc>::list(const list& __c)
1210 : base(allocator_type(
1211 __node_alloc_traits::select_on_container_copy_construction(
1212 __c.__node_alloc())))
1213{

--- 1209 unchanged lines hidden ---
1215}
1216
1217template <class _Tp, class _Alloc>
1218list<_Tp, _Alloc>::list(const list& __c)
1219 : base(allocator_type(
1220 __node_alloc_traits::select_on_container_copy_construction(
1221 __c.__node_alloc())))
1222{

--- 1209 unchanged lines hidden ---