Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) nothrow guarantee

 

The nothrow guarantee is a type of exception guarantee.

 

The nothrow guarantee denotes that the basic guarantee is satisfied, and that a some operations are guaranteed not to throw an exception.

If a function may not throw, declare it noexcept [1].

 

 

 

 

Reference

 

  1. Bjarne Stroustrup. The C++ Programming Language (4th edition). 2013. ISBN: 978-0-321-56384-2. Chapter 13.7. Advice. page 387: '[23] If your function may not throw, declare it noexcept'

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict