Template isPropertyGetter

Checks if given type is a getter function type

Arguments

template isPropertyGetter(T...);

Returns

`true` if argument is a getter

Example

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

Authors

Sönke Ludwig, Михаил Страшун

Copyright

© 2012 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.