variantArray

Returns an array of variants constructed from args.

This is by design. During construction the Variant needs static type information about the type being held, so as to store a pointer to function for fast retrieval.

variantArray
(
T...
)
()

Examples

auto a = variantArray(1, 3.14, "Hi!");
assert(a[1] == 3.14);
auto b = Variant(a); // variant array as variant
assert(b[1] == 3.14);

Meta