Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List lexicographic comparator #11129
List lexicographic comparator #11129
Changes from 89 commits
933c974
a1636e5
d59f54c
765dd8d
3d21daf
9f32e6b
53d3c90
022e2a4
7fef643
930d8de
0ecc4f8
ff36d2d
cd0f938
7b8e060
25eb237
d2937cf
d55c9c7
3bd749e
613d664
2ef3ac7
5577431
f037bc0
8c54a85
9d24a87
a664c81
1ebd877
3e6e9f4
facc031
a19b2c3
11bcf16
53f4418
0e528f0
f545af0
a4190a0
9362b8d
a7ec09b
d6ef822
5f0d36e
941b808
16e11cb
2bd2b6b
4be403c
8cbd70c
4640383
3f43968
4b233dc
6be6078
8e4c870
ee13936
499a5bd
0c3c12e
b62d0a2
a180bcc
229ebe3
926e7ab
d1cea06
6030b7b
fbb9dd3
25c22f9
5305349
9b5f8c1
b334d19
1e31ac1
7c77616
1f6b050
c35a39a
b520e38
ff66bdb
5a637d4
e8ebcc4
77c57bf
46f234f
6d89799
6b4ce40
b32205d
d578c8b
0671246
8c0ae93
d285df9
31a9bfd
36cc5f3
8dd293a
7b0ae58
be3ab5e
4a735d3
ab5a264
d58ad80
1f6b7ab
a1a9655
f5cee47
f7b671a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously I tried to use a lambda to simplify the code:
Unfortunately using such variadic template causes false compiler warnings. I want to bring it back here in case you guys may have a new idea for improving this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even if not, we can also reduce the code by half by writing a lambda for the block
lower_bound
/upper_bound
and calling it twice.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #11667 for discussion on how we can improve this. The plan is to do that in a follow-up so that we don't hold up this feature any longer for refactoring-like tasks.