Advertisement
spacechase0

Templates (2)

Oct 28th, 2011
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. template < typename T >
  2. class LinkedList
  3. {
  4.     public:
  5.         LinkedList(); // Default
  6.         LinkedList( const LinkedList< T >& list ); // Copy
  7.         LinkedList( LinkedList< T >&& list ); // Move (C++0x)
  8.         ~LinkedList(); // Deconstruct
  9.        
  10.         // ...
  11. };
  12.  
  13. LinkedList< int > intList;
  14. LinkedList< char > charList;
  15. // ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement