Question 276: When should an API use a function pointer, templated callable, lambda or functor, or std::function, and what trade-offs follow for state, lifetime, allocation, and optimization?
This detailed lesson requires Premium. You can still view the question and answer and practise interviews for free.