Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Class SMTH {
- enum Color {red, black};
- struct Node {
- int value;
- Color color;
- size_t left;
- size_t right;
- };
- void is_node_red() {
- return (node.color == red);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement