I need to create a keyed array that I can push data to.
I need to store id and time, and on an event push a new id and time to the array.
After a look around, many people have suggested vectors.
I’m not sure how I would implement it though, having two keys, and how to push to them?
If anyone could help?
Use a
std::vectorofstd::pair<T,U>, whereTandUare suitable data types for the id and the time.For example: