From d051e2e7e6f0b4faa080309b7cf7d7cf88ccb91d Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Fri, 17 Oct 2008 08:37:02 +0000 Subject: [PATCH] forward_list.h (forward_list<>::insert_after): Minor cosmetic changes. 2008-10-17 Paolo Carlini * include/bits/forward_list.h (forward_list<>::insert_after): Minor cosmetic changes. From-SVN: r141190 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/bits/forward_list.h | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1364419d299..2149864985e 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2008-10-17 Paolo Carlini + + * include/bits/forward_list.h (forward_list<>::insert_after): Minor + cosmetic changes. + 2008-10-16 Edward Smith-Rowland <3dw4rd@verizon.net> * include/bits/forward_list.h: Factor list construction to dispatch diff --git a/libstdc++-v3/include/bits/forward_list.h b/libstdc++-v3/include/bits/forward_list.h index cce8f3d7cc5..3c9f3ad96b4 100644 --- a/libstdc++-v3/include/bits/forward_list.h +++ b/libstdc++-v3/include/bits/forward_list.h @@ -888,7 +888,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) void insert_after(const_iterator __pos, size_type __n, const _Tp& __val) { - forward_list<_Tp, _Alloc> __tmp(__n, __val, this->get_allocator()); + forward_list __tmp(__n, __val, this->get_allocator()); this->splice_after(__pos, std::move(__tmp)); } @@ -910,7 +910,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) insert_after(const_iterator __pos, _InputIterator __first, _InputIterator __last) { - forward_list<_Tp, _Alloc> __tmp(__first, __last, this->get_allocator()); + forward_list __tmp(__first, __last, this->get_allocator()); this->splice_after(__pos, std::move(__tmp)); } @@ -930,7 +930,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) void insert_after(const_iterator __pos, std::initializer_list<_Tp> __il) { - forward_list<_Tp, _Alloc> __tmp(__il, this->get_allocator()); + forward_list __tmp(__il, this->get_allocator()); this->splice_after(__pos, std::move(__tmp)); } @@ -1227,8 +1227,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std) _M_initialize_dispatch(_InputIterator __first, _InputIterator __last, __false_type); - // Called by forward_list(n,v,a), and the range constructor when it turns out - // to be the same thing. + // Called by forward_list(n,v,a), and the range constructor when it + // turns out to be the same thing. void _M_fill_initialize(size_type __n, const value_type& __value); }; -- 2.30.2