System::Is metod
Innehåll
[
Dölj
]System::Is(const E&, const A&) method
Top-nivå matchningsfunktion. Tillämpar ett mönster på ett värde.
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)
| Parameter | Beskrivning |
|---|---|
| A | Mönstertyp (måste ärva från Details::Pattern). |
| E | Typ av värdet att matcha. |
| Parameter | Type | Beskrivning |
|---|---|---|
| e | const E& | Värde att matcha mot. |
| en | const A& | Mönster att tillämpa. |
ReturnValue
Sant om mönstret matchar värdet.
Se även
- Namespace System
- Library Aspose.Page for C++
System::Is(const ExpressionT&, const ConstantT&) method
Implementerar ‘is’ konstant mönstertolkning.
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)
| Parameter | Beskrivning |
|---|---|
| ExpressionT | vänster uttryckstyp. |
| ConstantT | typ av konstantuttryck. |
| Parameter | Type | Beskrivning |
|---|---|---|
| vänster | const ExpressionT& | uttryck som kommer att kontrolleras. |
| konstant | const ConstantT& | uttryck som kommer att jämföras med det vänstra. |
ReturnValue
sant om typkontrollen lyckas, falskt annars.
Se även
- Namespace System
- Library Aspose.Page for C++
System::Is(const ExpressionT&, ResultT&) method
Implementerar ‘is’ deklarationsmönstertolkning.
template<class PatternT,class ExpressionT,class ResultT> bool System::Is(const ExpressionT &left, ResultT &result)
| Parameter | Beskrivning |
|---|---|
| PatternT | typ att kontrollera. |
| ExpressionT | vänster uttryckstyp. |
| ResultT | typ av resultatuttryck. |
| Parameter | Type | Beskrivning |
|---|---|---|
| vänster | const ExpressionT& | uttryck som kommer att kontrolleras. |
| resultat | ResultT& | variabel som kommer att tilldelas den kontrollerade typen. |
ReturnValue
sant om typkontrollen lyckas, falskt annars.
Se även
- Namespace System
- Library Aspose.Page for C++