hasAttrib

Members

Manifest constants

hasAttrib
enum hasAttrib;
Undocumented in source.

Templates

impl
template impl(Attr...)
Undocumented in source.

Examples

enum clot;
size_t zlot(string s){ return s.length; }

void fnc1() @clot {}
void fnc2() @clot @zlot("ok") {}
void fnc3() @zlot("abc") {}

static assert(  hasAttrib!(clot,fnc1) );
static assert(  hasAttrib!(clot,fnc2) );
static assert(  hasAttrib!(2,fnc2) );
static assert( !hasAttrib!(clot,fnc3) );
static assert(  hasAttrib!(3,fnc3) );

Meta