isPropertyGetter

Checks if given type is a getter function type

Members

Manifest constants

isPropertyGetter
enum isPropertyGetter;
Undocumented in source.
isPropertyGetter
enum isPropertyGetter;
Undocumented in source.

Return Value

true if argument is a getter

Examples

interface Test
{
	@property int getter();
	@property void setter(int);
	int simple();
}

static assert(isPropertyGetter!(typeof(&Test.getter)));
static assert(!isPropertyGetter!(typeof(&Test.setter)));
static assert(!isPropertyGetter!(typeof(&Test.simple)));
static assert(!isPropertyGetter!int);

Meta