Quantcast
Channel: Is the default Move constructor defined as noexcept? - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Kerrek SB for Is the default Move constructor defined as noexcept?

I think the answer is 15.4/14 (Exception specifications):An inheriting constructor (12.9) and an implicitly declared special member function (Clause 12) have an exception-specification. If f is an...

View Article



Is the default Move constructor defined as noexcept?

It seems that a vector will check if the move constructor is labeled as noexcept before deciding on whether to move or copy elements when reallocating. Is the default move constructor defined as...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images