hasPropertyFunction

Is true iff T has a property member non-function named name.

Members

Manifest constants

hasPropertyFunction
enum hasPropertyFunction;
Undocumented in source.
hasPropertyFunction
enum hasPropertyFunction;
Undocumented in source.

Examples

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"));

Meta