+ 4
The noexcept keyword...
I recently encountered another code with the use of noexcept, but the user didn't explain anything. What is this keyword? Where and why is it used? It is related to exception handling somehow?
2 Réponses
+ 4
It lets the compiler and other programmers know that the function / copy/move constructor is expected to not throw exceptions. This allows the compiler to make optimizations.
+ 3
@aklex
Thanks