[v3] Use move_if_noexcept in std::vector

Paolo Carlini paolo.carlini@oracle.com
Tue Jun 7 16:19:00 GMT 2011


Hi,

the below starts using it, for correctness wrt move constructors which 
can throw. For sure we are missing the optimization which uses the 
default-constructor + swap when the type isn't nothrow move 
constructible, per Note 5 in n3050, for example.

Tested x86_64-linux, committed.

Paolo.

/////////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_move_if_noexcept_vector
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20110607/75a5d3e7/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_move_if_noexcept_vector
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20110607/75a5d3e7/attachment-0001.ksh>


More information about the Libstdc++ mailing list