System::Nullable::NullableBoolHelper-methode

Nullable::NullableBoolHelper method

Helperfunctie om te controleren of dit en other beide niet null zijn en een lambda aan te roepen indien dat het geval is. Wordt gebruikt in implementatie.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
ParameterBeschrijving
T1Ander nullable-type.
ParameterTypeBeschrijving
andersconst T1&Andere nullable-waarde om mee te vergelijken.
fconst std::function<bool()>&Lambda om aan te roepen als zowel this als other geen null-waarden zijn.
default_if_both_are_nullboolRetourwaarde als beide waarden null zijn.

ReturnValue

false als this of other null is; default_if_both_are_null als beide null zijn; resultaat van f-aanroep als beide niet null zijn.

Zie ook