This takes a name (which is just a string) and a value (which can be any type of object).
它需要一个名称(只是一个字符串)和一个值(任何类型的对象)。
Each of these classes is a template, and can be instantiated to contain any type of object.
这些类都是模板,它们的实例都可以容纳任何类型的对象。
And, the only thing I do with the types array is take its size, so I can add any type of object that has a size.
而我唯一用到types数组的地方是取它的大小,这样我可以添加任意类型的有大小的对象。
应用推荐