System::ObjectExt::CoalesceInternal methode
ObjectExt::CoalesceInternal method
Implementatie van ‘??’-operatorvertaling voor niet‑nullable typen. Overload voor het geval dat RT2 converteerbaar is naar 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)
| Parameter | Beschrijving |
|---|---|
| T0 | LHS-waardetype. |
| T1 | Type van lambda die de RHS-expressie encapsuleert. |
| Parameter | Type | Beschrijving |
|---|---|---|
| value | RT1 | LHS-waarde. |
| func | F | RHS-expressie. |
ReturnValue
Als de LHS-waarde niet null is, retourneert het LHS, anders wordt de RHS-expressie berekend en wordt het resultaat geretourneerd.
Zie ook
- Class ObjectExt
- Namespace System
- Library Aspose.Page for C++