fork download
  1. #include <iostream>
  2.  
  3. struct test
  4. {
  5. int a = 3;
  6. auto operator<<(int b)
  7. {
  8. return this->a << b;
  9. }
  10. };
  11.  
  12. int main()
  13. {
  14. test t;
  15. std::cout << (t << 3);
  16. return 0;
  17. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
24