Function Variant.peek

Tells whether this Variant holds currently a value of type T.

bool peek(T)() const
if (canFind!(T, Types));

Parameters

NameDescription
T Examined type.

Returns

true if this Variant currently contains a value of type T, false otherwise.