I've read a couple posts on the subject and it sounds hairy. But I think people are talking about using STL containers for Objective-C objects. I'm using pure C++.

  • \$\begingroup\$ It depends on your knowledge of memory allocations, pointers, references, copy constructors, etc... \$\endgroup\$ – jv42 Nov 7 '11 at 9:50
  • 1
    \$\begingroup\$ "But I think people are talking about using STL containers for objective-c objects." No one is talking about this. \$\endgroup\$ – user744 Nov 7 '11 at 11:03
  • 1
    \$\begingroup\$ possible duplicate of Is the STL efficient enough for mobile devices? \$\endgroup\$ – user744 Nov 7 '11 at 11:03
  • \$\begingroup\$ I don't know. Is it? \$\endgroup\$ – deceleratedcaviar Nov 7 '11 at 11:48
  • \$\begingroup\$ The problem with this question is that you're asking "can I use this package of code" without giving any details about your use case, or seemingly doing any research at all (other than your note about STL containers for Objective-C objects, which shows you're misunderstanding what most people are getting at). And "Okay" in what sense -- why would you be concerned about using the STL? If it's speed related, do you have any specific use cases you're concerned about? What would your alternatives be? \$\endgroup\$ – Tetrad Nov 7 '11 at 17:33

Short answer: yes

Long answer: depends on your use case. But probably yes.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.