I know of general idea of emplace functions on containers("construct new element inplace").
My question is not what it does,
but more of like Effective C++11 one.
What are good rules for deciding when to use (for eg when it comes to std::vector
) emplace_back()
and when to use push_back()
and in general emplace* vs "old" insert functions?
No comments:
Post a Comment