struct S { int m; static int sm; void f() {} static void sf() {} @property int rp() { return m; } @property void wp(int) {} } static assert(hasPropertyFunction!(S, "rp")); static assert(hasPropertyFunction!(S, "wp")); static assert(!hasPropertyFunction!(S, "na")); static assert(!hasPropertyFunction!(S, "m")); static assert(!hasPropertyFunction!(S, "sm")); static assert(!hasPropertyFunction!(S, "f")); static assert(!hasPropertyFunction!(S, "sf"));
Is true iff T has a property member non-function named name.