aboutsummaryrefslogtreecommitdiffstats
path: root/include/deque
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-12-02 12:47:11 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-12-02 12:47:11 +0000
commitdbabdb5220c44e5938d404eefb84b5ed55667ea8 (patch)
tree75c7e5204ae0564ac641b1629ef74066461d1884 /include/deque
parent8a86acebf859efb1adc46c88fa0cd69381a7291f (diff)
downloadsrc-dbabdb5220c44e5938d404eefb84b5ed55667ea8.tar.gz
src-dbabdb5220c44e5938d404eefb84b5ed55667ea8.zip
Notes
Notes: svn path=/vendor/libc++/dist/; revision=326465 svn path=/vendor/libc++/libc++-release_501-r320880/; revision=326904; tag=vendor/libc++/libc++-release_501-r320880
Diffstat (limited to 'include/deque')
-rw-r--r--include/deque5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/deque b/include/deque
index f795b489edc6..fee75614b97f 100644
--- a/include/deque
+++ b/include/deque
@@ -1356,7 +1356,6 @@ public:
iterator insert(const_iterator __p, initializer_list<value_type> __il)
{return insert(__p, __il.begin(), __il.end());}
#endif // _LIBCPP_CXX03_LANG
-
iterator insert(const_iterator __p, const value_type& __v);
iterator insert(const_iterator __p, size_type __n, const value_type& __v);
template <class _InputIter>
@@ -2224,7 +2223,11 @@ deque<_Tp, _Allocator>::__append(_InpIter __f, _InpIter __l,
!__is_forward_iterator<_InpIter>::value>::type*)
{
for (; __f != __l; ++__f)
+#ifdef _LIBCPP_CXX03_LANG
push_back(*__f);
+#else
+ emplace_back(*__f);
+#endif
}
template <class _Tp, class _Allocator>