在编程语言中,类型限定符(Type Qualifier)是一个关键之,用于修饰 类型(type)。
In the C, C++, and D programming languages, a type qualifier is a keyword that is applied to a type, resulting in a qualified type. For example,
const int
is a qualified type representing a constant integer, whileint
is the corresponding unqualified type, simply an integer. In D these are known as type constructors, by analogy with constructors in object-oriented programming.