forward_list.h (forward_list(size_type)): Add missing allocator parameter.
* 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. From-SVN: r193086
Showing
- libstdc++-v3/ChangeLog 18 additions, 0 deletionslibstdc++-v3/ChangeLog
- libstdc++-v3/include/bits/forward_list.h 32 additions, 21 deletionslibstdc++-v3/include/bits/forward_list.h
- libstdc++-v3/include/bits/forward_list.tcc 15 additions, 12 deletionslibstdc++-v3/include/bits/forward_list.tcc
- libstdc++-v3/testsuite/23_containers/forward_list/cons/11.cc 0 additions, 2 deletionslibstdc++-v3/testsuite/23_containers/forward_list/cons/11.cc
- libstdc++-v3/testsuite/23_containers/forward_list/cons/12.cc 0 additions, 2 deletionslibstdc++-v3/testsuite/23_containers/forward_list/cons/12.cc
- libstdc++-v3/testsuite/23_containers/forward_list/cons/13.cc 55 additions, 0 deletionslibstdc++-v3/testsuite/23_containers/forward_list/cons/13.cc
- libstdc++-v3/testsuite/23_containers/forward_list/cons/14.cc 35 additions, 0 deletionslibstdc++-v3/testsuite/23_containers/forward_list/cons/14.cc
Loading
Please register or sign in to comment