I have got a std::list< std::pair >, which I know is sorted according to the std::string element.
std::list< std::pair >
std::string element
Since I
You can use std::copy and std::inserter:
std::copy(the_list.begin(),the_list.end(),std::inserter(the_map,the_map.begin()));
because the iterator for a list< pair > has a value type compatible to map< X,Y >'s iterators.