by hellofunk · 10y ago · 0 comments
And std::function, from what I understand, is generally not as fast as a function pointer, a stored lambda, a function object, since it must do some run-time checks to see how to call what it is storing.
Whenever you need to make a function virtual in C++, you'd need to store a function pointer in an equivalent C design, somehow.