adrdox ~master (2021-09-18T14:48:25Z)
Home
Dub
Repo
generateOpEquals.generateOpEquals
dparse
ast
generateOpEquals
Undocumented in source.
template
generateOpEquals
(T)
enum
generateOpEquals
=
T.stringof
~
" obj = cast("
~
T.stringof
~
") other;\n"
~
"if (obj is null) return false;"
~
opEqualsPart
!(
__traits
(
derivedMembers
,
T
)) ~
"\n"
~
"return true;"
;
Meta
Source
See Source File
dparse
ast
generateOpEquals
manifest constants
generateOpEquals
templates
opEqualsPart