diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2016-06-16 13:42:21 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2016-06-16 13:42:21 +0100 |
commit | 0ae207e94796488449b40fe83263ddcefb4d9479 (patch) | |
tree | c21c54c01fa1e1f2b1e9694416e725c929a22523 /gcc | |
parent | f5e336b111def9f729b874fc1af3bddb73a3d612 (diff) | |
download | gcc-0ae207e94796488449b40fe83263ddcefb4d9479.zip gcc-0ae207e94796488449b40fe83263ddcefb4d9479.tar.gz gcc-0ae207e94796488449b40fe83263ddcefb4d9479.tar.bz2 |
Optimize inserting value_type into std::vector
* include/bits/stl_vector.h (vector::_S_insert_aux_assign): Define
new overloaded functions.
* include/bits/vector.tcc (vector::_M_insert_aux): Use new functions
to avoid creating a redundant temporary.
* testsuite/23_containers/vector/modifiers/insert_vs_emplace.cc: New
test.
From-SVN: r237526
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions