deushiro

Untitled

Mar 26th, 2021
439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1.  
  2. #ifndef HOMEWORK_1_NODE_H
  3. #define HOMEWORK_1_NODE_H
  4.  
  5. #include <vector>
  6.  
  7. template<typename T>
  8. class Node {
  9. public:
  10.     Node(){
  11.         next = std::vector<std::pair<Node<T>*, T>>();
  12.     }
  13.  
  14.     bool operator ==(const Node& right){
  15.         return(next == right.next && prev == right.prev);
  16.     }
  17.  
  18.     std::vector<std::pair<Node<T>*, T>> next;
  19.     std::vector<std::pair<Node<T>*, T>> prev;
  20.  
  21. };
  22.  
  23. #endif //HOMEWORK_1_NODE_H
  24.  
Advertisement
Add Comment
Please, Sign In to add comment