c ++ 11 2 Learning new features

noexcept alternative throw. The advantage is more secure,

If noexcept modified function throws an exception, the editor may choose to terminate the program directly.

C ++ 11 destructor default noexcept (true), thereby preventing the abnormal proliferation.

Guess you like

Origin www.cnblogs.com/zendu/p/11921119.html