System::TestPredicates::TypeTraits
Contents
[
Hide
]Structures
Struct | Description |
---|---|
has_data_method | Checks if a type has data() method. If it does, inherits std::true_type, otherwise inherits std::false_type. |
has_data_method< System::Collections::BitArray, void > | Specialization for BitArray type which provides boost type which is inaccessible there. |
has_print_to_method | Checks for overload of PrintTo function that accepts given type as first argument. If an overload exists, inherits std::true_type, otherwise inheirts std::false_type. |
IsCppContainer | Checks if specific type is STL-style container. To do so, checks for iterator and const_iterator member types existance. If both exist, inherits std::true_type, otherwise inherits std::false_type. |
IsEnumerable | Checks if type has System::Collections::Generic::IEnumerable specialization as basetype. If so, value member is set to true, otherwise it is set to false. |
LargestFPType | Provides alias for longest floating point type provided. Ignores non-floating point types. |
Typedefs
Typedef | Description |
---|---|
AreFPandArithmetic | Checks that T1 is arithmetic and T2 is floating point, or vice versa. If so, sets value member to true, otherwise it is false. |
AnyOfDecimal | Checks that at least one of type arguments is System::Decimal. If so, sets value member to true, otherwise it is false. |
IsArray | Checks if type is a System::Array specialization. If so, value member is set to true, otherwise it is set to false. |
IsList | Checks if type is a System::Collections::Generic::List specialization. If so, value member is set to true, otherwise it is set to false. |
BothArrayOrList | Checks if both type arguments are arrays or lists. If so, value member is set to true, otherwise it is set to false. |
BothEnumerable | Checks if both type arguments are IEnumerable. If so, value member is set to true, otherwise it is set to false. |