Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum Color
- {
- RED, BLACK
- };
- class RBNode
- {
- private:
- int key;
- Color color;
- RBNode* left;
- RBNode* right;
- RBNode* parent;
- public:
- RBNode(int key, Color color);
- friend class RedBlackTree;
- };
Advertisement
Add Comment
Please, Sign In to add comment