int main() { Something myThing; myThing.setThing( [&]() { return 1; }, [&]() { return 2; }, [&]() { return 3; } ); std::cout << myThing.run(); }