C++ delegate
https://blog.actorsfit.com/a?ID=00850-ca43f315-3160-4fca-b10b-5861f8ea566a 3.2 Implementation using lambda expressions Using lambda expressions can simplify this process. Refer to the following piece of code, classB registers a member function as a callback function to classA, and classA saves this callback function (std::function object) to … Lire la suite