Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in --d --h --m --s-- days -- hours -- minutes -- seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 1d 16h 07m 43s1 days 16 hours 7 minutes 43 seconds.
Guide: C++ Interview Questions for HFT and Quant Developer Roles · C++ for Quant Trading: A Step-by-Step Roadmap
Which statement is most accurate about these two approaches?
#include <functional>
struct IFace {
virtual int call(int) const = 0;
virtual ~IFace() = default;
};
int use_virtual(const IFace& f, int x) {
return f.call(x);
}
int use_function(const std::function<int(int)>& f, int x) {
return f(x);
}