Variant.peek

Tells whether this $(D_PSYMBOL Variant) holds currently a value of type T.

struct Variant
const
bool
peek
(
T
)
()
if ()

Parameters

T

Examined type.

Return Value

Type: bool

$(D_KEYWORD true) if this $(D_PSYMBOL Variant) currently contains a value of type T, $(D_KEYWORD false) otherwise.

Meta