System::Nullable::NullableBoolHelper Methode

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
ParameterBeschreibung
T1Anderer nullable Typ.
ParameterTypBeschreibung
andereconst T1&Anderer nullable Wert zum Vergleichen.
fconst std::function<bool()>&Lambda, das aufgerufen wird, wenn sowohl this als auch other nicht null sind.
default_if_both_are_nullboolRü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