notTemplate

Create predicate template returning !template_.

template notTemplate (
alias template_
) {}

Members

Templates

notTemplate
template notTemplate(T...)
Undocumented in source.

Examples

t
{
	import std.traits: isPointer;

	alias notPointer = notTemplate!isPointer;
	static assert( notPointer! int );
	static assert(!notPointer!(int*));

	alias toBoolTemplate = notTemplate!notTemplate;
	static assert(Inst!(toBoolTemplate!isPointer, int*));
	template get5() { enum get5 = 5; }
	static assert(Inst!(toBoolTemplate!get5) == true

Meta