|void function1(std::map< std::string, xy > & m)|
That is probably a good answer to the question; I assume it is but I cannot speak for the person asking the question.
I just want to add that it helps to use typedefs. I am sure you know what I mean. I hope the person asking the question also understands and if they do then they have all they need.