System::Is yöntemi

System::Is(const E&, const A&) method

Üst düzey eşleştirme işlevi. Bir değere bir desen uygular.

template<typename A,typename E> std::enable_if_t<std::is_base_of<Details::Pattern, A>::value, bool> System::Is(const E &e, const A &a)
ParameterAçıklama
ADesen türü (Details::Pattern’ten türemelidir).
EEşleştirilecek değerin türü.
ParameterTypeAçıklama
econst E&Eşleştirilecek değer.
aconst A&Uygulanacak desen.

ReturnValue

Desen değere eşleşiyorsa true.

Ayrıca Bakınız

System::Is(const ExpressionT&, const ConstantT&) method

‘is’ sabit desen çevirisini uygular.

template<class ExpressionT,class ConstantT> std::enable_if_t<!std::is_base_of<Details::Pattern, ConstantT>::value, bool> System::Is(const ExpressionT &left, const ConstantT &constant)
ParameterAçıklama
ExpressionTsol ifade türü.
ConstantTsabit ifade türü.
ParameterTypeAçıklama
solconst ExpressionT&denetlenecek ifade.
sabitconst ConstantT&sol ifadeyle karşılaştırılacak ifade.

ReturnValue

tip kontrolü başarılıysa doğru, aksi takdirde yanlış.

Ayrıca Bakınız

System::Is(const ExpressionT&, ResultT&) method

‘is’ bildirim desen çevirisini uygular.

template<class PatternT,class ExpressionT,class ResultT> bool System::Is(const ExpressionT &left, ResultT &result)
ParameterAçıklama
PatternTkontrol edilecek tip.
ExpressionTsol ifade türü.
ResultTsonuç ifadesinin tipi.
ParameterTypeAçıklama
solconst ExpressionT&denetlenecek ifade.
sonuçResultT&kontrol edilen tipe atanacak değişken.

ReturnValue

tip kontrolü başarılıysa doğru, aksi takdirde yanlış.

Ayrıca Bakınız