Skip to content

Glossary: Software Design Patterns in C++

std::function

Also written: function

A type that holds any callable with a given shape. `std::function<double(double)>` means anything you can call with a double that returns a double, which is how strategies and listeners are stored.

Where the book teaches it

Related terms

callablelambdaStrategy