Wouldn't a regular array with a couple of free functions work?

You will get a lot of reallocations. For non-trivial applications you need some more sophisticated approach to alter the size of the array and maybe also deterministic memory management.

A queue is a commonly used technique so so it's justified to have it in the standard library, just like lists, heaps etc.

Reply via email to