Template isPropertySetter

Checks if given type is a setter function type

Arguments

template isPropertySetter(T...);

Returns

`true` if argument is a setter

Example

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

static assert(isPropertySetter!(typeof(&Test.setter)));
static assert(!isPropertySetter!(typeof(&Test.getter)));
static assert(!isPropertySetter!(typeof(&Test.simple)));
static assert(!isPropertySetter!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.