c++ - When should I declare a move constructor without noexcept? -
c++ - When should I declare a move constructor without noexcept? -
the standard doesn't enforce noexcept on move constructors. in circumstances acceptable/neccesary move constructor throw?
when have no choice. of time move constructor should noexcept. , default.
see this: http://www.codingstandard.com/rule/12-5-4-declare-noexcept-the-move-constructor-and-move-assignment-operator/
it of import utilize noexcept types intended used standard library containers. if move constructor element type in container not noexcept container utilize re-create constructor rather move constructor.
c++ c++11 rvalue-reference
Comments
Post a Comment