System::Nullable::NullableBoolHelper Methode
Inhalt
[
Ausblenden
]Nullable::NullableBoolHelper method
Hilfsfunktion, um zu prüfen, ob dieses und other beide nicht null sind und ggf. ein Lambda aufzurufen. Wird in Implementierungen verwendet.
template<typename T1> bool System::Nullable<T>::NullableBoolHelper(const T1 &other, const std::function<bool()> &f, bool default_if_both_are_null=false) const
| Parameter | Beschreibung |
|---|---|
| T1 | Anderer nullable Typ. |
| Parameter | Typ | Beschreibung |
|---|---|---|
| andere | const T1& | Anderer nullable Wert zum Vergleichen. |
| f | const std::function<bool()>& | Lambda, das aufgerufen wird, wenn sowohl this als auch other nicht null sind. |
| default_if_both_are_null | bool | Rückgabewert, wenn beide Werte null sind. |
ReturnValue
false, wenn entweder this oder other null ist; default_if_both_are_null, wenn beide null sind; Ergebnis des Aufrufs von f, wenn beide nicht null sind.
Siehe auch
- Class Nullable
- Namespace System
- Library Aspose.Font for C++