System::Nullable::operator= メソッド

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

オブジェクトが現在表す値を指定された値に置き換えます。

template<typename T1> Nullable<T> & System::Nullable<T>::operator=(const Nullable<T1> &x)
パラメーター説明
この現在のオブジェクトが表す新しい値の型
パラメーター型説明
xconst Nullable<T1>&現在のオブジェクトが表す新しい値

ReturnValue

自身への参照

参照

Nullable::operator=(const T1&) method

オブジェクトが現在表す値を指定された値に置き換えます。

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)
パラメーター説明
この現在のオブジェクトが表す新しい値の型
パラメーター型説明
xconst T1&現在のオブジェクトが表す新しい値

ReturnValue

自身への参照

参照

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

現在のオブジェクトにnullを代入します。

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

ReturnValue

null 値を表すNullableオブジェクト

参照