【C++】红黑树的全面探索和深度解析

RED,BLACK:_kv(kv){}public:~RBTree()//根节点默认为黑色//新增节点。颜色红色给红色elsewhile(parent&&parent->_col==RED)//当父亲...