Convenience containers

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 ...

Get Game Programming using Qt 5 Beginner's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.