A 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 anemplace_back
method to parallelpush_back
, andemplace
to parallelinsert
.Here's a short demonstration of the benefits these new methods bring: ...
Add a Comment
Comments are closed.