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

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -