Name |
Last commit
|
Last update |
---|---|---|
.. | ||
construction.cc | ||
copy.cc | ||
copy_assign.cc | ||
ext_ptr.cc | ||
minimal.cc | ||
move.cc | ||
move_assign.cc | ||
noexcept.cc | ||
swap.cc |
* include/bits/stl_vector.h (emplace(const_iterator, _Args&&...)): Define inline. Forward to _M_emplace_aux. (insert(const_iterator, value_type&&)): Forward to _M_insert_rval. (_M_insert_rval, _M_emplace_aux): Declare new functions. (_Temporary_value): New RAII type using allocator to construct/destroy. (_S_insert_aux_assign): Remove. (_M_insert_aux): Make non-variadic. * include/bits/vector.tcc (insert(const_iterator, const value_type&)): Use _Temporary_value. (emplace(const_iterator, _Args&&...)): Remove definition. (_M_insert_rval, _M_emplace_aux): Define. (_M_insert_aux): Make non-variadic, stop using _S_insert_aux_assign. (_M_fill_insert): Use _Temporary_value. * testsuite/23_containers/vector/allocator/construction.cc: New test. * testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc: Adjust expected results for emplacing an lvalue with reallocation. * testsuite/23_containers/vector/check_construct_destroy.cc: Adjust expected results to account for construction/destruction of temporary using allocator. From-SVN: r237985
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
construction.cc | Loading commit data... | |
copy.cc | Loading commit data... | |
copy_assign.cc | Loading commit data... | |
ext_ptr.cc | Loading commit data... | |
minimal.cc | Loading commit data... | |
move.cc | Loading commit data... | |
move_assign.cc | Loading commit data... | |
noexcept.cc | Loading commit data... | |
swap.cc | Loading commit data... |