fork download
  1. #include <cstddef>
  2. #include <iostream>
  3.  
  4. struct foo_t
  5. {
  6. template <std::size_t x, std::size_t y>
  7. std::size_t operator ()() const
  8. { return x * y; }
  9. };
  10.  
  11. int main()
  12. {
  13. foo_t foo;
  14. std::cout << foo.operator()<3, 5>() << '\n';
  15. }
Success #stdin #stdout 0.02s 2680KB
stdin
Standard input is empty
stdout
15