2018-08-06 ☼ coding ☼ c++
class MyClass { void start() { } void stop() { } void run(int x) { auto oper = &MyClass::start; if (x == 0) { oper = &MyClass::stop; } (this->*oper)(); } };