在 C# 中,我可以创建这样的列表来存储类类型:
List<Type> types_list = new List<Type>();
types_list.add(typeof(int));
types_list.add(typeof(Process)); //and etc
我可以在 C++ 中做同样的事情吗?
最佳答案
关于c# - C++ 是否有一些类似于 C# Type 的东西来将类的类型存储在列表/数组中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9279850/