fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct MJ {
  5. void GetLowEdgeEnergy(size_t arg) {
  6. cout << "GetLowEdgeEnergy, arg = " << arg << endl;
  7. }
  8. void operator ()(size_t arg) {
  9. cout << "operator (), arg = " << arg << endl;
  10. }
  11. };
  12.  
  13. int main() {
  14. MJ mj;
  15. mj.GetLowEdgeEnergy(42);
  16. mj(42);
  17. return 0;
  18. }
Success #stdin #stdout 0s 3096KB
stdin
Standard input is empty
stdout
GetLowEdgeEnergy, arg = 42
operator (), arg = 42