September 20, 2014 [Issue 13511] New: std.traits.hasElaborateEquality!T | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13511 Issue ID: 13511 Summary: std.traits.hasElaborateEquality!T Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1 Component: DMD Assignee: nobody@puremagic.com Reporter: andrei@erdani.com std.traits.hasElaborateEquality!T evaluates to true if T defines opEquals or has a member that does, false otherwise. In the latter case, objects may be compared with memcmp. std.traits.hasElaborateEquality should not be implemented for classes: references themselves can always be compared bitwise, and the class objects they refer to will always have elaborate comparison. -- |
Copyright © 1999-2021 by the D Language Foundation