What's the default implementation of opCmp/opEquals for structs?
Steven Schveighoffer
schveiguy at gmail.com
Wed Mar 3 18:41:39 UTC 2021
On 3/3/21 1:37 PM, Jack wrote:
> the one that the compiler defaults to when you don't provide one?
There's no default opCmp.
For opEquals, it's a memberwise comparison.
-Steve
More information about the Digitalmars-d-learn
mailing list