- 0of 0 votes
I want to store an item of below structure in a C++ contrainer.- northernlight November 24, 2015
I also want to calculate summation of 'i' of all elements in the container which have been added in past 60 secs.
Which container or data structure is best for this scenario. Should take care of iterator invalidations while calculating the summation iterating the container items (which can happen if a new element gets added when I am iterating).
| Report Duplicate | Flag | PURGE
Open Chat in New Window