Glossary: C++ Beyond the Basics
std::function
Also written: std::bad_function_call
A type from `<functional>` that holds any callable with a given signature, such as `std::function<int(int)>`, so different lambdas can share one container, at a small cost per call. Calling an empty one throws `std::bad_function_call`.