digitalmars.D.learn - isTemplate and isValue?
- Shriramana Sharma (9/9) Dec 12 2015 Hello. Re my posting just now re AliasSeq being able to contain a templa...
- Basile B. (4/13) Dec 12 2015 It's already there:
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... --
Dec 12 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
Dec 12 2015