System::Nullable::operator== 方法

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

确定当前对象表示的值是否等于指定的 Nullable 对象表示的值。

template<typename T1> bool System::Nullable<T>::operator==(const Nullable<T1> &other) const
参数描述
T1用于比较的 Nullable 对象的底层类型
参数类型描述
otherconst Nullable<T1>&用于比较的 Nullable 对象的常量引用

ReturnValue

如果当前对象表示的值等于指定的 Nullable 对象表示的值,则为 true;否则为 false。

另见

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

确定当前对象表示的值是否等于指定的值。

template<typename T1> std::enable_if<!IsNullable<T1>::value, bool>::type System::Nullable<T>::operator==(const T1 &other) const
参数描述
T1用于比较的值的类型
参数类型描述
其他const T1&用于比较的值的常量引用

ReturnValue

如果当前对象表示的值等于指定的值,则为 true;否则为 false。

另见

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

确定当前对象表示的值是否为 null。

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

ReturnValue

如果当前对象表示的值为 null,则为 true;否则为 false。

另见