enum class ObjCTypeParamVariance

Description

Describes the variance of a given generic parameter.

Declared at: clang/include/clang/AST/DeclObjC.h:557

Enumerators

NameValueComment
Invariant0The parameter is invariant: must match exactly.
Covariant1The 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.
Contravariant2The 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.