Variant.this

Template to create a new Variant from a single D value.

  1. this(void* ptr, Flag!"Take" take)
  2. this(T val)
    class Variant
    this
    (
    T
    )
    (
    T val
    )
    if (
    !is(T == void*)
    )
  3. this(T vals)

Parameters

T

The D type to create the variant from

val T

The value to assign