O'Reilly logo

Game Programming using Qt 5 Beginner's Guide - Second Edition by Lorenz Haas, Witold Wysota, Pavel Strakhov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required