How do I copy the contents of a map from one class into a new vector from another class
<p>In my C++ code, I have a class that has a map of pairs as a private member, and I need to copy those pairs into a new vector that will be held in a different class (also private). If these containers were both in main(), I could do it pretty easily using copy(), but copy() won't work on my class. What's the most straightforward approach given my constraints?</p>
