-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
util/interval: implement Iterator method for btree
1. Implement Iterator method for btree and add tests. 2. Restore Range.Equal method and fix the wrong logic of Range.Equal. The existing Equal method considers Range A and Range B to be equal if A's Start is equal to B's End and A's End is equal to B's Start. The correct logic is to consider Range A and Range B to be equal if A's Start is equal to B's Start and A's End is equal to B's End. See #16079. 3. Add complile time checks to ensure that btree and llrbTree implement the Tree interface. 4. s/llbrNode/llrbNode/g and s/llbrTree/llrbTree/g. 5. Move comment from llrbTree to Tree.
- Loading branch information
1 parent
5e70539
commit 7afaa91
Showing
4 changed files
with
190 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.