Advertisement
Kagalive

01:06:10:Templates

Sep 30th, 2020 (edited)
692
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. /*
  2. Operator Overloading
  3.  
  4. - Operators are just functions
  5. - Overloading is just the same function with different parameters
  6.  
  7. Templates
  8. - A powerful way to write a library
  9.     - Work on any type
  10.     - Work on *both* built-in and user defined types
  11.  
  12. - Eg: vector is a template
  13.  
  14. Using templates can be easy. eg: sort();
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement