System::Nullable::NullableBoolHelper metodu

Nullable::NullableBoolHelper method

Bu ve other öğelerinin ikisinin de null olmadığını kontrol eden yardımcı işlev ve eğer öyleyse bir lambda çağırır. 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
ParameterAçıklama
T1Diğer nullable tip.
ParameterTypeAçı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 olmadığında çağrılacak lambda.
default_if_both_are_nullboolHer iki değer de null ise döndürülecek değer.

ReturnValue

Eğer this ya da other null ise false; default_if_both_are_null her iki değer de null ise; f çağrısının sonucu her iki değer de null değilse.

Ayrıca Bakınız