Hi guys I need to read/write two vectors of uint64_t to a binary file. I've been reading how to do this and have seen some example code for other data structures. But I am still not clear on how to do it. If someone could write code that could do this, it would really help the learning process.
Also, I am considering representing these pairs of integers using the following data structure:
vector< pair<uint64_t, uint64_t> > intPairs;
I would be accessing the numbers many times, on the order of millions. Would I lose a significant amount of efficiency by implementing this data structure as opposed to just two separate vectors? If no, perhaps you'd be nice and provide example code using that data structure? Thank you!