class
<functional>
std::bad_function_call
Exception thrown on bad call
- exception
- bad_function_call
Type thrown by empty function objects when their functional call is invoked.
Empty function objects are function objects with no target callable object.
This class is derived from exception. See the exception class for the member definitions of standard exceptions.
Example
|
|
Output:
30 ERROR: Bad function call
Exception safety
No-throw guarantee: no members throw exceptions.See also
- exception
- Standard exception class (class)
- function
- Function wrapper (class template)