createVariant

Template to create a new VariantC from multiple D values.

  1. VariantC* createVariant(T val)
  2. VariantC* createVariant(T vals)
    createVariant
    (
    T...
    )
    ()
    if (
    vals.length > 1
    )

Parameters

T

The D types to create the variant from

vals T

The values to assign

Return Value

Type: VariantC*

New variant C instance with floating reference