std::bad_function_call (3) - Linux Manuals
std::bad_function_call: std::bad_function_call
NAME
std::bad_function_call - std::bad_function_call
Synopsis
Defined in header <functional>
class bad_function_call; (since C++11)
std::bad_function_call is the type of the exception thrown by std::function::operator() if the function wrapper has no target.
std-bad function call-inheritance.svg
Inheritance diagram
Member functions
constructor (public member function)
std::bad_function_call::bad_function_call()
bad_function_call() noexcept;
Constructs a new instance of std::bad_function_call.
Parameters
(none)
Inherited from std::exception
Member functions
destructor destroys the exception object
[virtual]
what returns an explanatory string
[virtual]
Example
// Run this code
Possible output:
See also
function wraps callable object of any type with specified function call signature
(C++11)