Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template<class T>
- class LinkedList
- {
- public:
- struct Node //узел
- {
- ///
- private:
- T _value;
- std::shared_ptr<Node>_next;
- std::shared_ptr<Node>_prev;
- };
- class Iterator:public std::iterator<std::bidirectional_iterator_tag, T>
- {
- public:
- ////
- Iterator& operator++(){node = node->_next; return*this; };
- ///
- };
- //
- };
Add Comment
Please, Sign In to add comment