43for (
int i = 0;
i < 1000; ++
i) {
44 if (
map[
i] == okButton)
45 cout <<
"Found button at index " <<
i << endl;
51QMapIterator<QString, int>
i(
map);
54 cout <<
qPrintable(
i.key()) <<
": " <<
i.value() << endl;
100 return e1.dateOfBirth() < e2.dateOfBirth();
126map.insert(
"December", 12);
157if (
i.key() ==
"Hello")
158 i.value() =
"Bonjour";
167map.insert(
"December", 12);
176 cout <<
"The key: " <<
it.key() <<
endl;
QString name() const
[5] //! [6]
\inmodule QtCore \reentrant
iterator insert(const Key &key, const T &value)
T value(const Key &key, const T &defaultValue=T()) const
iterator erase(const_iterator it)
bool contains(const Key &key) const
const_iterator cend() const
const_iterator cbegin() const
QList< Key > keys() const
iterator upperBound(const Key &key)
key_iterator keyBegin() const
key_iterator keyEnd() const
\macro QT_RESTRICTED_CAST_FROM_ASCII
qDeleteAll(list.begin(), list.end())
QSet< QString >::iterator it
QTextStream & endl(QTextStream &stream)
Writes '\n' to the stream and flushes the stream.
qsizetype erase_if(QByteArray &ba, Predicate pred)
qsizetype erase(QByteArray &ba, const T &t)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLbitfield GLuint64 timeout
[4]
static bool operator<(const QSettingsIniKey &k1, const QSettingsIniKey &k2)
#define qPrintable(string)