mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 21:20:11 +01:00
Came up on #4831, style: "For a type T whose values can be compared for equality, define a non-member operator== and document when two values of type T are considered equal." https://google.github.io/styleguide/cppguide.html#Operator_Overloading Note while we could put some of these out-of-line, it's helpful to keep them inside the braces: - For private member access - For templated cases so that we aren't duplicating templates - Very mild preference for keeping class's API documented within the braces