qt6-bb10/tests/auto/corelib/tools
Mathias Hasselmann 50e2db6a75 Add first/last accessors to QMap
QMap explicitly sorts its entries by key value. For an ordered container
it's (often?) useful to access the first or last entry, for instance to
quickly compute the next key of the mapping. The first entry is easily
accessible by the STL begin() method, but for accessing the last entry
pretty ugly iterator arithmetics must be applied: *(end() - 1). With
their first() and last() accessors the container classes QList and
QVector provide a much nicer method of accessing extrema, so for
consistency this syntactical sugar also should be applied to QMap.

Change-Id: Ibd544acbad8c3ac16f12a1e74362207ea1694375
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Thorbjørn Lund Martsum <tmartsum@gmail.com>
2013-09-08 16:13:16 +02:00
..
qalgorithms Make tst_qalgorithms compliant with the Standard 2013-09-05 09:48:22 +02:00
qarraydata
qbitarray
qbytearray tests: Fix some more old references and links to Nokia 2013-02-01 15:27:37 +01:00
qbytearraymatcher
qbytedatabuffer
qcache
qchar Ensure we don't repeat QTBUG-30931 in Qt5 2013-06-18 13:36:23 +02:00
qcommandlineparser Add QT_NO_PROCESS guards in tests where they are missing 2013-09-03 08:42:24 +02:00
qcontiguouscache
qcryptographichash Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
qdate Add the RFC2822Date format 2013-07-24 15:02:35 +02:00
qdatetime QDateTime - Clean up Qt::DateFormat formatting and parsing 2013-09-06 01:53:11 +02:00
qeasingcurve Avoided zero devision in cube root approximation 2013-07-29 19:29:15 +02:00
qelapsedtimer
qexplicitlyshareddatapointer
qfreelist
qhash QHash/QSet - fix QHash::erase when the hash is shared 2013-08-24 15:36:30 +02:00
qline
qlinkedlist QLinkedList - extend the auto test. 2013-08-29 08:16:44 +02:00
qlist QList - fix insert with iterator on shared instance 2013-08-24 15:36:30 +02:00
qlocale QLocale - Improve date formatter 2013-09-05 23:20:09 +02:00
qmap Add first/last accessors to QMap 2013-09-08 16:13:16 +02:00
qmargins Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
qmessageauthenticationcode tst_qmessageauthenticationcode: Fix warning about character conversion. 2013-06-08 10:29:34 +02:00
qpair
qpoint Add static dotProduct methods to the QPoint(F) classes 2013-01-26 00:09:14 +01:00
qpointf Fix QPointF::division autotest 2013-08-19 14:24:28 +02:00
qqueue Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
qrect
qregexp
qregularexpression QRegularExpression: print a warning if (?J) is used in a pattern 2013-02-12 22:40:21 +01:00
qringbuffer
qscopedpointer Revert "Implement move-ctor and move-assignment-op for QScopedPointer" 2013-09-05 08:20:19 +02:00
qscopedvaluerollback
qset Added initializer list constructors for Qt associative containers. 2013-01-24 11:38:54 +01:00
qsharedpointer Add QT_NO_PROCESS guards in tests where they are missing 2013-09-03 08:42:24 +02:00
qsize
qsizef
qstl
qstring Add some extra tests for QString::arg 2013-04-29 16:56:58 +02:00
qstring_no_cast_from_bytearray
qstringbuilder
qstringlist
qstringmatcher
qstringref QStringRef: Added toInt(), toUInt(), etc... functions to QStringRef. 2013-02-22 21:23:33 +01:00
qtextboundaryfinder
qtime QDateTime - Clean up Qt::DateFormat formatting and parsing 2013-09-06 01:53:11 +02:00
qtimeline Fixed bug in QTimeLine::setPaused(false) 2013-03-13 14:51:05 +01:00
qvarlengtharray QVarLengthArray: add squeeze function 2013-01-28 16:52:40 +01:00
qvector QVector - removeLast optimize 2013-03-07 08:37:26 +01:00
tools.pro Long live QCommandLineParser! 2013-08-24 21:33:39 +02:00