lundi 25 septembre 2017

Does C++11 standard require implementers to prioritize noexcept move constructor over const copy constructor for std::vector?

Reading this and this and 23.3.6.5/1 of the standard, where in the latest C++ standard draft is it specified that implementers should prioritize the use of non-throwing move-constructor T(T &&t) noexcept over a const copy-constructor T(const T &t) when std::vector<T> re-allocates its element as a result of a push_back operation? Is it 13.3.3.1.4/1 on overload resolution of reference binding?

Aucun commentaire:

Enregistrer un commentaire