I was viewing the MSDN doc about multimap and find that it has a member function multimap::emplace(). Below is the example of that member function.
int main( ) {
using namespace std;
multimap<int, string> m1;
pair<int, string> is1(1, "a");
m1.emplace(move(is1));
}
It seems that emplace()
and move()
are C++0x. Can someone explain them for me? I read about move()
, but I really don't understand what does it do (under the hood).