[4eyes] C++11 Highlights
Chris Sweeney
cmsweeney at cs.ucsb.edu
Mon Jan 21 12:33:58 PST 2013
Hey everyone,
C++11 was set about a year ago, but I've found that most people aren't
super aware of the changes in the coding standard. There's a lot of useful
c++ features that have come with this update, and the gcc compilers are almost
completely compatible <http://gcc.gnu.org/projects/cxx0x.html> with the
features. Many of these features or not just useful from a development
standpoint, but also will improve performance (compile time and run time)
Below is an article with some c++11 highlights that you might want to look
at. For me, the most significant additions are the following:
- smart pointers (similar to Boost) so that you don't have to worry about
data ownership and deconstruction quite as much
- rvalue references
- multithreading support
- for each loops (technically added in c++0x I think)
- automatic type detection (using the auto keyword... but I would only
recommend using it on long expressions like iterators, otherwise it gets
hard to track what your variables actually are)
- uniform initialization, and initialization via brackets for all objects
- a bunch of new algorithms in the stl algorithms
http://blog.smartbear.com/software-quality/bid/167271/The-Biggest-Changes-in-C-11-and-Why-You-Should-Care
If anybody has questions about c++11 stuff, I'm decently versed in it so
feel free to ask me about it.
-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cs.ucsb.edu/pipermail/ilab-users/attachments/20130121/d40fcda6/attachment.html>
More information about the Ilab-users
mailing list