Guest User

Untitled

a guest
Nov 22nd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. template<class T>
  2. class LinkedList
  3. {
  4. public:
  5.  
  6. struct Node //узел
  7. {
  8. ///
  9. private:
  10. T _value;
  11. std::shared_ptr<Node>_next;
  12. std::shared_ptr<Node>_prev;
  13. };
  14.  
  15. class Iterator:public std::iterator<std::bidirectional_iterator_tag, T>
  16. {
  17. public:
  18. ////
  19. Iterator& operator++(){node = node->_next; return*this; };
  20. ///
  21. };
  22. //
  23. };
Add Comment
Please, Sign In to add comment