enum class ObjCTypeParamVariance
Description
Describes the variance of a given generic parameter.
Declared at: clang/include/clang/AST/DeclObjC.h:557
Enumerators
Name | Value | Comment |
---|---|---|
Invariant | 0 | The parameter is invariant: must match exactly. |
Covariant | 1 | The parameter is covariant, e.g., X <T > is a subtype of X <U > when the type parameter is covariant and T is a subtype of U. |
Contravariant | 2 | The parameter is contravariant, e.g., X <T > is a subtype of X <U > when the type parameter is covariant and U is a subtype of T. |