operator==()

Nullable::operator==(std::nullptr_t) const method

Determines if the value represented by the current object is null.

bool System::Nullable<T>::operator==(std::nullptr_t) const

Return Value

True if the value represented by the current object is null, otherwise - false

Nullable::operator==(const T1&) const method

Determines if the value represented by the current object is equal to the specified value.

template<typename T1> std::enable_if<!IsNullable<T1>::value, bool>::type System::Nullable<T>::operator==(const T1 &other) const

Template parameters

ParameterDescription
T1The type of the value to compare with

Arguments

ParameterTypeDescription
otherconst T1&A constant reference to the value to compare with

Return Value

True if the value represented by the current object is equal to the specified value, otherwise - false

Nullable::operator==(const Nullable<T1>&) const method

Determines if the value represented by the current object is equal to the value represented by the specified Nullable object.

template<typename T1> bool System::Nullable<T>::operator==(const Nullable<T1> &other) const

Template parameters

ParameterDescription
T1The underlying type of the Nullable object to compare with

Arguments

ParameterTypeDescription
otherconst Nullable<T1>&A constant reference to the Nullable object to compare with

Return Value

True if the value represented by the current object is equal to the value represented by the specified Nullable object, otherwise - false

See Also