Variant.opEquals

Compares this $(D_PSYMBOL Variant) with another one with the same specification for equality.

  • If both hold values of the same type, these values are compared.
  • If they hold values of different types, then the $(D_PSYMBOL Variant)s aren't equal.
  • If only one of them is initialized but another one not, they aren't equal.
  • If neither of them is initialized, they are equal.
struct Variant
inout
bool
opEquals
()
(
auto ref inout(Variant) that
)

Parameters

that inout(Variant)

The $(D_PSYMBOL Variant) to compare with.

Return Value

Type: bool

$(D_KEYWORD true) if this $(D_PSYMBOL Variant) is equal to that, $(D_KEYWORD false) otherwise.

Meta