Guest User

Untitled

a guest
Jan 16th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. class myClass{
  2. ...
  3. public:
  4. T1 foo(T2 x){T1 y; /*something*/ return y;};
  5. }
  6.  
  7. myClass obj;
  8. T1 a = obj.foo(x); //<--
  9.  
  10. myClass obj;
  11. obj.foo(x); //<--
  12.  
  13. T1 a = obj.foo(x);
  14. obj.foo(x);
  15.  
  16. T1 a = obj.foo(x);
  17. obj.foo(x);
  18.  
  19. T1 foo(T2 x) __attribute__ ((warn_unused_result));
Add Comment
Please, Sign In to add comment