I have two vector<map<string,MyObject>>
type data and I want to move or copy some of MyObject
data to copy another in the same type in C++ like below:
using namespace std;
struct MyObject{
string id;
string name;
string phone;
string salary;
};
//Somewhere else have below type.
vector<map<string,MyObject>> v1;
vector<map<string,MyObject>> v2;
How can I perform the above-given operation?