noexcept operator (since C++11)
From cppreference.com
The noexcept
operator performs a compile-time check that returns true if an expression is declared to not throw any exceptions.
It can be used within a function template's noexcept specifier to declare that the function will throw exceptions for some types but not others.
Syntax
noexcept( expression )
|
|||||||||
Returns a prvalue of type bool.
Explanation
The noexcept
operator does not evaluate expression.
The result is
In all other cases the result is |
(until C++17) |
The result is |
(since C++17) |