Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC++move semantics and rvalue refsSingle-choice MCQ

What is the practical consequence of declaring a move constructor that is NOT marked noexcept, for a type stored in std::vector?

struct T { T(T&&) /* not noexcept */ { /* ... */ } T(const T&) { /* ... */ } };