std::function<int(float)>
: in here int(float)
is a function type that returns an int
and accepts (as an argument) float
.
What I'm trying to understand
std::function<int(float) const>
std::function<int(float) const&>
What is the meaning of the const
and const&
in the above statements
Thank you