C++ 中 NSMutableArray 的等价物?
最接近 Objective-C NSMutableArray 的 C++ 对象是什么?
What is the C++ object which is the closest to Objective-C NSMutableArray
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
std::向量。
请参阅http://www.cplusplus.com/reference/stl/vector/。
std::vector.
See http://www.cplusplus.com/reference/stl/vector/.
NSMutableArray
是一个异构容器,因此:std::vector
在 C++17 之前,您可以使用类似
boost 的东西: :any
而不是std::any
。NSMutableArray
is a heterogeneous container, so:std::vector<std::any>
Before C++17, you could've used something like
boost::any
instead ofstd::any
.