Commit d051e2e7 by Paolo Carlini Committed by Paolo Carlini

forward_list.h (forward_list<>::insert_after): Minor cosmetic changes.

2008-10-17  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/forward_list.h (forward_list<>::insert_after): Minor
	cosmetic changes.

From-SVN: r141190
parent e73d6fe8
2008-10-17 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/forward_list.h (forward_list<>::insert_after): Minor
cosmetic changes.
2008-10-16 Edward Smith-Rowland <3dw4rd@verizon.net> 2008-10-16 Edward Smith-Rowland <3dw4rd@verizon.net>
* include/bits/forward_list.h: Factor list construction to dispatch * include/bits/forward_list.h: Factor list construction to dispatch
......
...@@ -888,7 +888,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -888,7 +888,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
void void
insert_after(const_iterator __pos, size_type __n, const _Tp& __val) 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)); this->splice_after(__pos, std::move(__tmp));
} }
...@@ -910,7 +910,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -910,7 +910,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
insert_after(const_iterator __pos, insert_after(const_iterator __pos,
_InputIterator __first, _InputIterator __last) _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)); this->splice_after(__pos, std::move(__tmp));
} }
...@@ -930,7 +930,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -930,7 +930,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
void void
insert_after(const_iterator __pos, std::initializer_list<_Tp> __il) 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)); this->splice_after(__pos, std::move(__tmp));
} }
...@@ -1227,8 +1227,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -1227,8 +1227,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
_M_initialize_dispatch(_InputIterator __first, _InputIterator __last, _M_initialize_dispatch(_InputIterator __first, _InputIterator __last,
__false_type); __false_type);
// Called by forward_list(n,v,a), and the range constructor when it turns out // Called by forward_list(n,v,a), and the range constructor when it
// to be the same thing. // turns out to be the same thing.
void void
_M_fill_initialize(size_type __n, const value_type& __value); _M_fill_initialize(size_type __n, const value_type& __value);
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment