Splits T around key K into lesser and greater trees.
Declared in <llvm/ADT/ImmutableSet.h>
void
splitLookup(
TreeTy* T,
key_type_ref K,
TreeTy*& L,
value_type const*& Match,
TreeTy*& R);
L receives all keys less than K and R all keys greater than K. If K is present in T, Match is set to point at its element (which is dropped from L and R); otherwise Match is null.
| Name | Description |
|---|---|
| T | Tree to split (may be null). |
| K | Split key. |
| L | Set to the tree of keys less than K. |
| Match | Set to the matched element, or null if absent. |
| R | Set to the tree of keys greater than K. |