...//header files
class A{
private:
std::vector<uint16_t>r;
std::vector<uint8_t>s;
std::vector<float>t;
public:
...//methods.. no constructor or destructor
friend class B;
}
class B{
private:
std::string s;
int a,b;
std::map<int, std::vector<A>> X,Y,Z;
public:
....//methods including constructors and destructors
}
int main(){
..
std::map<std::string,std::vector<B>>myMap;
...
}
Now I want to write myMap to a file and then read from it. How could I go about it...?
I'm new to boost and would like some advise, in this regard.