I need a queue on n items where insertion of (n+1)th item removes the 0th item and insertion can only be made on the “back”.
Is there any such structure already there in boost or standard library?
I need a queue on n items where insertion of ( n +1) th
Share
You can use a
boost::circular_bufferwrapped by astd::queue, something like this: