Using the STL in Objective-C

One of the really powerful libraries available to C++ programmers is the Standard Template Library (STL). While Cocoa has fantastic built-in classes, sometimes it is beneficial–especially when working with algorithms where raw numbers are being used and speed is more important–to use the STL.

Using the STL in Objective-C requires that you switch the file to use Objective-C++ by changing the file ending to .mm. After that you can import the various STL libraries normally: #import .

See Also:

This entry was posted in Uncategorized. Bookmark the permalink.

Error: The ad management script is not properly configured for this user

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>