System::Nullable::NullableBoolHelper yöntemi

Nullable::NullableBoolHelper method

other ile bunun her ikisinin de null olmamasını kontrol eden ve bu durumda bir lambda çağıran yardımcı işlev. Uygulamalarda kullanılır.

template<typename T1> bool System::Nullable<T>::NullableBoolHelper(const T1 &other, const std::function<bool()> &f, bool default_if_both_are_null=false) const
ParametreAçıklama
T1Diğer nullable tür.
ParametreTürAçıklama
diğerconst T1&Karşılaştırma için diğer nullable değer.
fconst std::function<bool()>&Her iki this ve other null değilse çağırılacak lambda.
default_if_both_are_nullboolHer iki değer de null ise döndürülecek değer.

ReturnValue

this veya other null ise false; her ikisi de null ise default_if_both_are_null; ikisi de null değilse f çağrısının sonucu.

Ayrıca Bakınız