In addition to the containers described earlier, there are a few containers built on top of them that provide APIs and behavior that are more convenient in some special cases:
Container | Description |
QStack | A QVector implementing the last in, first out (LIFO) structure. It contains the push() function for adding items to the stack, the pop() function for removing the top element, and the top() function for reading the top element without removing it. |
QQueue | A QList implementing the first in, first out (FIFO) structure. Use enqueue() to append an item to the queue, dequeue() to take the head item from the queue, and head() to read the head item without removing it. |
QMultiMap | A QMap with an API tailored for having ... |