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
Create predicate template returning !template_.