[Development] Use of Standard Library containers in Qt source code
Stephen Kelly
steveire at gmail.com
Sun Jul 3 11:26:42 CEST 2016
Thiago Macieira wrote:
> What do we do?
{
int container[1];
Q_ASSERT(!qIsEmpty(container));
}
{
std::vector<int> container;
Q_ASSERT(qIsEmpty(container));
}
{
std::deque<int> container;
Q_ASSERT(qIsEmpty(container));
}
{
std::list<int> container;
Q_ASSERT(qIsEmpty(container));
}
{
std::forward_list<int> container;
Q_ASSERT(qIsEmpty(container));
}
{
QVector<int> container;
Q_ASSERT(qIsEmpty(container));
}
{
QList<int> container;
Q_ASSERT(qIsEmpty(container));
}
{
QLinkedList<int> container;
Q_ASSERT(qIsEmpty(container));
}
{
QString container;
Q_ASSERT(qIsEmpty(container));
}
More information about the Development
mailing list