System::ObjectExt::CoalesceInternal yöntemi
ObjectExt::CoalesceInternal method
Null olmayan tipler için ‘??’ operatörü çevirisinin uygulanması. RT2’nin RT1’e dönüştürülebilir olduğu durum için aşırı yükleme.
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)
| Parameter | Açıklama |
|---|---|
| T0 | LHS değer türü. |
| T1 | RHS ifadesini kapsülleyen lambda türü. |
| Parameter | Type | Açıklama |
|---|---|---|
| değer | RT1 | LHS değeri. |
| fonksiyon | F | RHS ifadesi. |
ReturnValue
Eğer LHS değeri null değilse, LHS döndürülür, aksi takdirde RHS ifadesi hesaplanır ve sonuç döndürülür.
Ayrıca Bakınız
- Class ObjectExt
- Namespace System
- Library Aspose.Page for C++