#include <functional>
typedef std::function<int(int, int)> op;
void UpdateValues(int X, int Y, op One, op Two)
{
//eventually doing something like
One(X, 1);
Two(Y, 2);
}
int main()
{
op someOperator = std::plus<int>();
op someOtherOperator = std::minus<int>();
}
I2luY2x1ZGUgPGZ1bmN0aW9uYWw+Cgp0eXBlZGVmIHN0ZDo6ZnVuY3Rpb248aW50KGludCwgaW50KT4gb3A7Cgp2b2lkIFVwZGF0ZVZhbHVlcyhpbnQgWCwgaW50IFksIG9wIE9uZSwgb3AgVHdvKQp7CiAgICAgIC8vZXZlbnR1YWxseSBkb2luZyBzb21ldGhpbmcgbGlrZQogICAgICBPbmUoWCwgMSk7CiAgICAgIFR3byhZLCAyKTsKfQoKaW50IG1haW4oKQp7CiAgICBvcCBzb21lT3BlcmF0b3IgPSBzdGQ6OnBsdXM8aW50PigpOwogICAgb3Agc29tZU90aGVyT3BlcmF0b3IgPSBzdGQ6Om1pbnVzPGludD4oKTsKfQo=