System::ObjectExt::CoalesceVoid method
ObjectExt::CoalesceVoid method
Implementation of ‘??’ operator in case when right part returns void (it throws, for example).
template<typename T0,typename T1> static T0 System::ObjectExt::CoalesceVoid(T0 value, T1 func)
| Parameter | Description |
|---|---|
| T0 | LHS value type. |
| T1 | Type of lambda encapsulating RHS expression. |
| Parameter | Type | Description |
|---|---|---|
| value | T0 | LHS value. |
| func | T1 | RHS expression. |
ReturnValue
Executes func when value is nullptr and returns value.
See Also
- Class ObjectExt
- Namespace System
- Library Aspose.TeX for C++