如果整数不是 class,整数向量如何保存对象?

How can a vector of integers hold objects if an integer is not a class?

当我阅读 C++ primer 第五版时,我遇到了向量的这个定义:

A vector is a collection of objects, all of which have the same type. Every object in the collection has an associated index, which gives access to that object. A vector is often referred to as a container because it “contains” other objects.

如果我有一个整数值向量,那么 class 所有这些对象属于什么?因为“int”不是 class 因为这个 link 的这些答案已经解释过了:

Is int (built in data types) a class in c++?

我还从 IBM 了解到“数据对象”的概念,在这种情况下,这些是矢量持有的对象吗?因为我一直在阅读“数据对象”这个概念,但它仍然让我感到困惑。即使它是向量持有的对象,我的问题仍然存在:它属于什么class?

If I have a vector of integer values then what class do all these objects belong?

根本没有class。整数向量的元素是整数类型的对象。整数类型是基本类型。