This is the mail archive of the
libstdc++-cvs@gcc.gnu.org
mailing list for the libstdc++ project.
r193086 - in /trunk/libstdc++-v3: ChangeLog inc...
- From: redi at gcc dot gnu dot org
- To: libstdc++-cvs at gcc dot gnu dot org
- Date: Fri, 02 Nov 2012 01:29:01 -0000
- Subject: r193086 - in /trunk/libstdc++-v3: ChangeLog inc...
Author: redi
Date: Fri Nov 2 01:29:00 2012
New Revision: 193086
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193086
Log:
* include/bits/forward_list.h (forward_list(size_type)): Add missing
allocator parameter.
(_Fwd_list_node_base): Use NSDMI and define constructor as defaulted.
(_Fwd_list_node::_M_value): Replace with uninitialized storage.
(_Fwd_list_node::_M_valptr()): Define functions to access storage.
(_Fwd_list_iterator, _Fwd_list_const_iterator): Use _M_valptr.
(_Fwd_list_base::_M_create_node): Only use allocator to construct the
element not the node.
* include/bits/forward_list.tcc (_Fwd_list_base::_M_erase_after): Only
use allocator to destroy the element not the node.
* testsuite/23_containers/forward_list/cons/11.cc: Remove unused
headers.
* testsuite/23_containers/forward_list/cons/12.cc: Likewise.
* testsuite/23_containers/forward_list/cons/13.cc: New.
* testsuite/23_containers/forward_list/cons/14.cc: New.
Added:
trunk/libstdc++-v3/testsuite/23_containers/forward_list/cons/13.cc
- copied, changed from r193084, trunk/libstdc++-v3/testsuite/23_containers/forward_list/cons/11.cc
trunk/libstdc++-v3/testsuite/23_containers/forward_list/cons/14.cc
- copied, changed from r193084, trunk/libstdc++-v3/testsuite/23_containers/forward_list/cons/11.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/forward_list.h
trunk/libstdc++-v3/include/bits/forward_list.tcc
trunk/libstdc++-v3/testsuite/23_containers/forward_list/cons/11.cc
trunk/libstdc++-v3/testsuite/23_containers/forward_list/cons/12.cc