System::Nullable::operator= method

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

Replaces the object’s currently represented value with the specified one.

template<typename T1> Nullable<T> & System::Nullable<T>::operator=(const Nullable<T1> &x)
ParameterDescription
Thetype of the new value to be represented by the current object
ParameterTypeDescription
xconst Nullable<T1>&The new value to be represented by the current object

ReturnValue

A reference to the self

See Also

Nullable::operator=(const T1&) method

Replaces the object’s currently represented value with the specified one.

template<typename T1> std::enable_if<!IsNullable<T1>::value &&!std::is_null_pointer<T1>::value, Nullable<T> &>::type System::Nullable<T>::operator=(const T1 &x)
ParameterDescription
Thetype of the new value to be represented by the current object
ParameterTypeDescription
xconst T1&The new value to be represented by the current object

ReturnValue

A reference to the self

See Also

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

Assigns a null to the current object.

template<typename T1,typename> Nullable<T> System::Nullable<T>::operator=(std::nullptr_t)

ReturnValue

A Nullable object that represents null-value.

See Also