aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2016-06-16 13:42:21 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2016-06-16 13:42:21 +0100
commit0ae207e94796488449b40fe83263ddcefb4d9479 (patch)
treec21c54c01fa1e1f2b1e9694416e725c929a22523 /gcc
parentf5e336b111def9f729b874fc1af3bddb73a3d612 (diff)
downloadgcc-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