isTemplate and isValue?

Basile B. via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Dec 12 06:34:28 PST 2015


On Saturday, 12 December 2015 at 14:17:52 UTC, Shriramana Sharma 
wrote:
> Hello. Re my posting just now re AliasSeq being able to contain 
> a template identifier too, I wonder whether it is possible to 
> have a std.traits template to identify whether something is a 
> template or not?
>
> In connection with this, while is() is there to determine 
> whether something is a type or not, what should I use to 
> determine whether something is a value or not?
>
> These would be useful to identify the kind of a member of an 
> AliasSeq...

It's already there:

http://dlang.org/spec/traits.html#isTemplate


More information about the Digitalmars-d-learn mailing list