fork(1) download
  1. #include <iostream>
  2. #include <functional>
  3.  
  4. struct Ex
  5. {
  6. void f(); //member function
  7. std::function<void()> g; //member std::function
  8. void (*h)(); //member pointer to function
  9. };
  10.  
  11. int main()
  12. {
  13. //no instance of Ex exists
  14. auto my_f = &Ex::f;
  15. }
Success #stdin #stdout 0s 3336KB
stdin
Standard input is empty
stdout
Standard output is empty