Equivalent of NSMutableArray in C++?
std::vector.
See http://www.cplusplus.com/reference/stl/vector/.
NSMutableArray
is a heterogeneous container, so: std::vector<std::any>
Before C++17, you could've used something like boost::any
instead of std::any
.