In reply to mayurkubavat:
FYI, only push_front() gives you the behavior of discarding the oldest element off a bounded queue.
Also, randc is not relevant to what the OP has asked.
In reply to mayurkubavat:
FYI, only push_front() gives you the behavior of discarding the oldest element off a bounded queue.
Also, randc is not relevant to what the OP has asked.