forward_list.tcc (forward_list<>:: _M_initialize_dispatch(_InputIterator, _InputIterator, __false_type)): Simplify.
2008-10-17 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/forward_list.tcc (forward_list<>:: _M_initialize_dispatch(_InputIterator, _InputIterator, __false_type)): Simplify. From-SVN: r141192
This commit is contained in:
parent
98b932e7c9
commit
27caad2e1e
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-10-17 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
* include/bits/forward_list.tcc (forward_list<>::
|
||||
_M_initialize_dispatch(_InputIterator, _InputIterator, __false_type)):
|
||||
Simplify.
|
||||
|
||||
2008-10-17 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
* include/bits/forward_list.h (forward_list<>::
|
||||
|
|
|
@ -215,12 +215,10 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
|||
__false_type)
|
||||
{
|
||||
_Fwd_list_node_base* __to = &this->_M_impl._M_head;
|
||||
_InputIterator __curr = __first;
|
||||
while (__curr != __last)
|
||||
for (; __first != __last; ++__first)
|
||||
{
|
||||
__to->_M_next = this->_M_create_node(*__curr);
|
||||
__to->_M_next = this->_M_create_node(*__first);
|
||||
__to = __to->_M_next;
|
||||
++__curr;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue