forward_list.h (forward_list<>:: forward_list(size_type)): Tweak, use _Base default constructor.
2008-10-17 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/forward_list.h (forward_list<>:: forward_list(size_type)): Tweak, use _Base default constructor. From-SVN: r141191
This commit is contained in:
parent
d051e2e7e6
commit
98b932e7c9
@ -1,3 +1,8 @@
|
||||
2008-10-17 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
* include/bits/forward_list.h (forward_list<>::
|
||||
forward_list(size_type)): Tweak, use _Base default constructor.
|
||||
|
||||
2008-10-17 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
* include/bits/forward_list.h (forward_list<>::insert_after): Minor
|
||||
|
@ -470,7 +470,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
||||
*/
|
||||
explicit
|
||||
forward_list(size_type __n)
|
||||
: _Base(_Alloc())
|
||||
: _Base()
|
||||
{ _M_fill_initialize(__n, value_type()); }
|
||||
|
||||
/**
|
||||
@ -517,8 +517,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
||||
*/
|
||||
forward_list(const forward_list& __list)
|
||||
: _Base(__list.get_allocator())
|
||||
{ _M_initialize_dispatch(__list.begin(), __list.end(),
|
||||
__false_type()); }
|
||||
{ _M_initialize_dispatch(__list.begin(), __list.end(), __false_type()); }
|
||||
|
||||
/**
|
||||
* @brief The %forward_list move constructor.
|
||||
|
Loading…
Reference in New Issue
Block a user