STL11: Magic && Secrets

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
The C++ Standard Library expanded and evolved massively between C++98/03 and C++11. Its easy to forget the magnitude of these changes, because they happened gradually and sometimes invisibly. Some things (like shared_ptr, regex, and function) were developed in Boost in the early 2000s, before making their way into TR1 in 2005 and then C++11. Other things, like container move semantics, automatically improve programs without human intervention. Sometimes I can hardly believe that programmers used to live without non-intrusive deterministically reference-counted smart pointers! We are fortunate to live in such an advanced and enlightened age.

In this presentation, Ill explore how some of the C++11 Standard Librarys magic works, including how the Standardization Committee fixed pairs constructors (I bet you think that pair is the simplest type in the world - ha! wrong!) and how I saved a million zillion bytes of memory across all the programs using VC10+s make_shared<T>().

Oh, and I will also reveal a secret that has never been announced before. <img src="http://m.webtrends.com/dcs1wotjh10000w0irc493s0e_6x1g/njs.gif?dcssip=channel9.msdn.com&dcsuri=http://channel9.msdn.com/Feeds/RSS&WT.dl=0&WT.sessionid=Session:RSSView:e5f3aeb9591742ee85d99fd4012da855

View the full article
 
Back
Top