I’m moving from Objective-C to C++ and am not sure what vectors are. I’ve read documentation about them, I’m not quite clear though. How would you explain C++ vectors using Objective-C analogies?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
They’re pretty similar to
NSMutableArraysbutvectoris a template class and so can be instanciated for any (standard-template-library compatible) type.NSArraysalways holdNSObjects.That is, assuming you mean
std::vector.