From f4502fbaf0d31d08bf08f1685f1d7b30735b72b4 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Wed, 20 Jan 2016 19:33:01 +0100 Subject: [docs] Fix reverse STL iteration example Use reverse_iterator, now that we finally have it. Change-Id: If74ead1a6075c5437c1d111206913481a495a014 Reviewed-by: Olivier Goffart (Woboq GmbH) --- src/corelib/doc/src/containers.qdoc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/corelib/doc/src') diff --git a/src/corelib/doc/src/containers.qdoc b/src/corelib/doc/src/containers.qdoc index 0ae3817ac7..988f728946 100644 --- a/src/corelib/doc/src/containers.qdoc +++ b/src/corelib/doc/src/containers.qdoc @@ -472,9 +472,7 @@ \image stliterators1.png - Iterating backward with an STL-style iterator requires us to - decrement the iterator \e before we access the item. This - requires a \c while loop: + Iterating backward with an STL-style iterator is done with reverse iterators: \snippet code/doc_src_containers.cpp 11 -- cgit v1.2.3