Determines whether symbol has user-defined attribute attr attached to it.
A symbol.
User-defined attribute.
$(D_KEYWORD true) if symbol has user-defined attribute attr, $(D_KEYWORD false) otherwise.
static struct Attr1 { } static struct Attr2 { } @Attr1 int a; static assert(hasUDA!(a, Attr1)); static assert(!hasUDA!(a, Attr2));
User Defined Attributes.
See Implementation
Determines whether symbol has user-defined attribute attr attached to it.