operator=()

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)

Return Value

A Nullable object that represents null-value.

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)

Template parameters

ParameterDescription
Thetype of the new value to be represented by the current object

Arguments

ParameterTypeDescription
xconst T1&The new value to be represented by the current object

Return Value

A reference to the self

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)

Template parameters

ParameterDescription
Thetype of the new value to be represented by the current object

Arguments

ParameterTypeDescription
xconst Nullable<T1>&The new value to be represented by the current object

Return Value

A reference to the self

See Also