What is the C++ object which is the closest to Objective-C NSMutableArray
?
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With