Files
carbon-lang/toolchain/base
Chandler CarruthandJon Ross-Perkins 1529538ad2 Use concepts and better comparisons from C++20 in IndexBase. (#3666)
This is one of the nicer improvements to boiler-plate as we benefit from
concepts simplifying the constraints on the templates, defaulted `!=`
finding `==`, and the `<=>` operator for a single definition of all
relational operators.

I've checked and the `!=` usages do seem to be effective at finding the
`==` definitions, but we still need both the RHS- and LHS-based
overloads of `==` as far as I can tell.

---------

Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
2024-01-31 02:47:34 +00:00
..