This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Refactor forward_list


... and this. Tested x86_64-linux.

Paolo.

///////////////
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.
Index: include/bits/forward_list.h
===================================================================
*** include/bits/forward_list.h	(revision 141190)
--- include/bits/forward_list.h	(working copy)
*************** _GLIBCXX_BEGIN_NAMESPACE(std)
*** 470,476 ****
         */
        explicit
        forward_list(size_type __n)
!       : _Base(_Alloc())
        { _M_fill_initialize(__n, value_type()); }
  
        /**
--- 470,476 ----
         */
        explicit
        forward_list(size_type __n)
!       : _Base()
        { _M_fill_initialize(__n, value_type()); }
  
        /**
*************** _GLIBCXX_BEGIN_NAMESPACE(std)
*** 517,524 ****
         */
        forward_list(const forward_list& __list)
        : _Base(__list.get_allocator())
!       { _M_initialize_dispatch(__list.begin(), __list.end(),
!                                __false_type()); }
  
        /**
         *  @brief  The %forward_list move constructor.
--- 517,523 ----
         */
        forward_list(const forward_list& __list)
        : _Base(__list.get_allocator())
!       { _M_initialize_dispatch(__list.begin(), __list.end(), __false_type()); }
  
        /**
         *  @brief  The %forward_list move constructor.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]