noexcept specifier
noexcept specifier (since C++11)
Specifies whether a function will throw exceptions or not.
Syntax
noexcept | (1) | |
noexcept( expression) | (2) | |
throw() | (3) | (deprecated) |
1) Same as
noexcept
(
true
)
2) If expression evaluates to
true
, the function is declared to not throw any exceptions.