We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
*const *
A "const function", denoted with the keyword const after a function declaration, makes it a compiler error for this class function to change a member variable of the class.
Throw
It means it won't throw any exceptions. This is an important guarantee for a function like what, which is usually called in exception handling: you don't want another exception to be thrown while you're trying to handle one.
Day 17: More Exceptions
You are viewing a single comment's thread. Return to all comments →
*const * A "const function", denoted with the keyword const after a function declaration, makes it a compiler error for this class function to change a member variable of the class.
Throw
It means it won't throw any exceptions. This is an important guarantee for a function like what, which is usually called in exception handling: you don't want another exception to be thrown while you're trying to handle one.
Source: http://stackoverflow.com/questions/22352927/throw-after-function-declaration-in-c-exception-struct