for(map<ordered datatype , datatype >::iterator iter =mapname.begin();iter!=mapname.end())
cout<<mapname->first<<" "<<mapname->second. <<endl