NullableBoolHelper()
Contents
[
Hide
]Nullable::NullableBoolHelper(const T1&, const std::function<bool()>&, bool) const method
Helper function to check if this and other are both not nulls and call a lambda if so. Used in implementation.s.
template<typename T1> bool System::Nullable<T>::NullableBoolHelper(const T1 &other, const std::function<bool()> &f, bool default_if_both_are_null=false) const
Template parameters
Parameter | Description |
---|---|
T1 | Other nullable type. |
Arguments
Parameter | Type | Description |
---|---|---|
other | const T1& | Other nullable value to compare to. |
f | const std::function<bool()>& | Lambda to call if both this and other are not nulls. |
default_if_both_are_null | bool | Return value if both values are nulls. |
Return Value
false if either this or other is null; default_if_both_are_null if both are null; result of f call if both are not null.
See Also
- Class Nullable
- Namespace System
- Library Aspose.Slides