fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. class a {
  6. public: int i;
  7.  
  8. };
  9. a operator<< (a t, const int j) { t.i = j; return t; };
  10.  
  11.  
  12. int main() {
  13. cout<< (a()<<2).i ;
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 2680KB
stdin
Standard input is empty
stdout
2