Luna::Variant::valid

bool valid() const

Checks whether the variant is valid.

Return value

Returns true if type of the variant is not VariantType::null. Returns false otherwise.