System::Nullable::NullableBoolHelper metodu
İçindekiler
[
Saklamak
]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
| Parameter | Açıklama |
|---|---|
| T1 | Diğer nullable tip. |
| Parameter | Type | Açıklama |
|---|---|---|
| diğer | const T1& | Karşılaştırma için diğer nullable değer. |
| f | const std::function<bool()>& | Her iki this ve other null olmadığında çağrılacak lambda. |
| default_if_both_are_null | bool | Her 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
- Class Nullable
- Namespace System
- Library Aspose.Page for C++