reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
170 assert(N != nullptr); 171 N->Height = 1 + std::max(height(N->Left), height(N->Right)); 171 N->Height = 1 + std::max(height(N->Left), height(N->Right)); 171 N->Height = 1 + std::max(height(N->Left), height(N->Right)); 172 if (N->Left) 173 N->MaxEnd = std::max(N->MaxEnd, N->Left->MaxEnd); 173 N->MaxEnd = std::max(N->MaxEnd, N->Left->MaxEnd); 173 N->MaxEnd = std::max(N->MaxEnd, N->Left->MaxEnd); 174 if (N->Right) 175 N->MaxEnd = std::max(N->MaxEnd, N->Right->MaxEnd); 175 N->MaxEnd = std::max(N->MaxEnd, N->Right->MaxEnd); 175 N->MaxEnd = std::max(N->MaxEnd, N->Right->MaxEnd); 176 return N;