TypesOf

Get's an AliasSeq of types from the given arguments

Members

Aliases

T
alias T = F
Undocumented in source.
T
alias T = typeof(Symbols[0])
Undocumented in source.
T
alias T = Symbols[0]
Undocumented in source.
TypesOf
alias TypesOf = AliasSeq!(T, TypesOf!(Symbols[1..$]))
Undocumented in source.
TypesOf
alias TypesOf = AliasSeq!()
Undocumented in source.

Examples

assertTrue(is(TypesOf!("foo", 42U, 24, 123.0, float) == AliasSeq!(string, uint, int, double, float)));
assertTrue(is(TypesOf!(null) == AliasSeq!(typeof(null))));
assertTrue(is(TypesOf!("foobar") == AliasSeq!(string)));

// check for static eval
static assert(is(TypesOf!("foobar") == AliasSeq!(string)));

Meta