fork download
  1. #include <functional>
  2.  
  3. struct X{
  4. void f(){}
  5. };
  6.  
  7. int main(){
  8. std::function<void(X&)> f(&X::f);
  9. X x;
  10. f(x);
  11. };
Success #stdin #stdout 0s 2924KB
stdin
Standard input is empty
stdout

Standard output is empty