This is the mail archive of the
mailing list for the libstdc++ project.
emplace method for associative containers
- From: Rodolfo Lima <rodolfo at rodsoft dot org>
- To: libstdc++ at gcc dot gnu dot org
- Date: Wed, 21 May 2008 10:20:45 -0300
- Subject: emplace method for associative containers
Hi, it seems that the emplace method (C++0X) is missing from associative
containers like sets, multisets, unordered_sets, etc. This method is
currently implemented for sequence containers but IMHO it's more useful
in context of unique associative containers in that the object is only
created if the insertion will take place, whereas in sequence container
the object is always created and inserted, which can be accomplished
solely by the insert method.