Functions are not first-class citizens in C++; types are.
If you want to work with functions, start with std::function
.
If you need more control or performance, consider a functor—a class that implements operator()
.
Functions are not first-class citizens in C++; types are.
If you want to work with functions, start with std::function
.
If you need more control or performance, consider a functor—a class that implements operator()
.