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:
Paolo Carlini 2008-10-17 08:54:38 +00:00 committed by Paolo Carlini
parent d051e2e7e6
commit 98b932e7c9
2 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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.