Re: [PATCH] Optimize inserting value_type into std::vector

2016-06-16 Thread Jonathan Wakely
On 15/06/16 11:15 +0100, Jonathan Wakely wrote: * 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. *

Re: [PATCH] Optimize inserting value_type into std::vector

2016-06-15 Thread Jonathan Wakely
On 15/06/16 11:34 +0100, Jonathan Wakely wrote: On 15/06/16 11:15 +0100, Jonathan Wakely wrote: * 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

Re: [PATCH] Optimize inserting value_type into std::vector

2016-06-15 Thread Jonathan Wakely
On 15/06/16 11:15 +0100, Jonathan Wakely wrote: * 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. *

[PATCH] Optimize inserting value_type into std::vector

2016-06-15 Thread Jonathan Wakely
* 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. *