0001 constexpr bool RBT_BLACK = true, RBT_RED = false; //节点颜色 0002 auto IsBlack = [](auto x) { return x ? x->color : RBT_BLACK; }; //nullptr视作黑节点 0003 auto IsRed = [](auto x) { return !IsBlack(x); }; //非黑即红