createVariant

Template to create a VariantC from a single D value.

  1. VariantC* createVariant(T val)
    createVariant
    (
    T
    )
    (
    T val
    )
  2. VariantC* createVariant(T vals)

Parameters

T

The type of the value

val T

The value to assign to the new VariantG.

Return Value

Type: VariantC*

New variant C instance with floating reference