Chromium Code Reviews
DescriptionUse std::tie for multi-member comparisons
Per discussion on cxx@chromium.org, update C++ style
guide to allow limited use of std::tie() for implementing
lexicographical comparisons of structures, which are
conceptually simple but verbose and easy to get wrong.
This first CL updates a handful of cases as a proof-of-
concept; a tracking bug is filed to audit the code base.
BUG=555171
R=thakis@chromium.org
Committed: https://crrev.com/a882f62eafc5bc81dbe9804ab5f171f3cb90c7cf
Cr-Commit-Position: refs/heads/master@{#359467}
Patch Set 1 #Patch Set 2 : Style guide updates #
Messages
Total messages: 13 (4 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||