I am seeing a code where in the program it is creating a hash_map:
// Create a hash_map hm3 with the
// allocator of hash_map hm1
hash_map <MyStr, MyInt>::allocator_type hm1_Alloc;
hm1_Alloc = hm1.get_allocator( );
hash_map <MyStr, MyInt, hash_compare <MyStr, less_str > > hm3( hash_compare <MyStr, less_str > (), hm1_Alloc );
hm3.insert( Int_Pair( "three", 30 ) );
Could anyone please explain me the 3rd statement where hm3 is declared.
hash_map <MyStr, MyInt, hash_compare <MyStr, less_str > > hm3( hash_compare <MyStr, less_str > (), hm1_Alloc );
The complete program can be found here