Skip to content

Glossary: System Design Beyond the Basics in C++

std::function

Also written: std::function<double()>

A C++ type that holds any callable, such as a lambda. The token bucket takes one as its clock so tests can pass a fake.

Where the book teaches it

Related terms

Token bucket