diff options
Diffstat (limited to 'src/corelib/doc/src/containers.qdoc')
-rw-r--r-- | src/corelib/doc/src/containers.qdoc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/corelib/doc/src/containers.qdoc b/src/corelib/doc/src/containers.qdoc index e6c95129db..d0bb251e81 100644 --- a/src/corelib/doc/src/containers.qdoc +++ b/src/corelib/doc/src/containers.qdoc @@ -66,6 +66,12 @@ Qt also offers a \l{foreach} keyword that make it very easy to iterate over all the items stored in a container. + \note Since Qt 5.14, range constructors are available for most of the + container classes. QMultiMap is a notable exception. Their use is + encouraged in place of the various from/to methods. For example: + + \snippet code/doc_src_containers.cpp 25 + \section1 The Container Classes Qt provides the following sequential containers: QList, @@ -666,7 +672,7 @@ \li \b{Logarithmic time:} O(log \e n). A function that runs in logarithmic time is a function whose running time is proportional to the logarithm of the number of items in the - container. One example is qBinaryFind(). + container. One example is the binary search algorithm. \li \b{Linear time:} O(\e n). A function that runs in linear time will execute in a time directly proportional to the number of |