Variant.opCall

This pseudo-constructor is used to place a value into a new Variant.

  1. Variant opCall(T value)
    struct Variant
    static
    opCall
    (
    T
    )
    ()
  2. Variant opCall(TypeInfo type, void* ptr)

Parameters

value T

The value you wish to put in the Variant.

Return Value

Type: Variant

The new Variant.

Examples

auto v = Variant(42);

Meta