fork download
  1. #include <vector>
  2.  
  3. struct s {};
  4. typedef void (s::*fn)(int);
  5. struct thing {fn function;};
  6.  
  7. void f()
  8. {
  9. s * object;
  10. int parameter, a;
  11.  
  12. std::vector<thing> vector;
  13.  
  14. (object->*(vector[a].function)) (parameter);
  15. }
  16.  
  17. int main() {}
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty