50 cout <<
qPrintable(
i.key()) <<
": " <<
i.value() << endl;
77while (
i !=
map.
end() &&
i.key() ==
"plenty") {
78 cout <<
i.value() <<
endl;
85 cout <<
i.value() <<
endl;
119 return e1.dateOfBirth() < e2.dateOfBirth();
148while (
i != upperBound) {
149 cout <<
i.value() <<
endl;
195if (
i.key() ==
"Hello")
196 i.value() =
"Bonjour";
205multimap.insert(
"December", 12);
215map1.
insert(
"plenty", 100);
216map1.
insert(
"plenty", 2000);
219map2.
insert(
"plenty", 5000);
228 cout <<
"The key: " <<
it.key() <<
endl
237int numPrimes = std::count_if(
multimap.cbegin(),
multimap.cend(), isPrimeNumber);
241int numPrimes = std::count_if(
multimap.keyBegin(),
multimap.keyEnd(), isPrimeNumber);
242qDeleteAll(multimap2.keyBegin(), multimap2.keyEnd());
QString name() const
[5] //! [6]
\inmodule QtCore \reentrant
iterator insert(const Key &key, const T &value)
iterator insert(const Key &key, const T &value)
\macro QT_RESTRICTED_CAST_FROM_ASCII
QMap< QString, QString > map
[6]
qDeleteAll(list.begin(), list.end())
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]
GLenum GLsizei GLsizei GLint * values
[15]
GLbitfield GLuint64 timeout
[4]
static bool operator<(const QSettingsIniKey &k1, const QSettingsIniKey &k2)
#define qPrintable(string)