Perfect forwarding and universal references in C++—Eli Bendersky

Save to:
Instapaper Pocket Readability

plusprofilephoto.pngA nice tutorial on a feature that leads to convenient and safe calling code:

Perfect forwarding and universal references in C++

by Eli Bendersky

From the article:

One of the new features in C++11 aimed at increased code efficiency is the emplace family of methods in containers. std::vector, for example, has an emplace_back method to parallel push_back, and emplace to parallel insert.

Here's a short demonstration of the benefits these new methods bring: ...

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.