System::ObjectExt::CoalesceInternal メソッド

ObjectExt::CoalesceInternal method

非 nullable 型向けの ‘??’ 演算子変換の実装です。RT2 が RT1 に変換可能な場合のオーバーロードです。

template<typename RT1,typename RT2,typename F> static std::conditional<std::is_convertible<RT2, RT1>::value, RT1, RT2>::type System::ObjectExt::CoalesceInternal(RT1 value, F func)
パラメーター説明
T0左辺の値型。
T1右辺式をカプセル化するラムダの型。
パラメーター説明
valueRT1LHS 値。
funcFRHS 式。

ReturnValue

LHS 値が null でない場合は LHS を返し、そうでない場合は RHS 式を計算して結果を返します。

参照