summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qiterable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/kernel/qiterable.cpp')
-rw-r--r--src/corelib/kernel/qiterable.cpp27
1 files changed, 15 insertions, 12 deletions
diff --git a/src/corelib/kernel/qiterable.cpp b/src/corelib/kernel/qiterable.cpp
index b720154d36..a8c93fbc1c 100644
--- a/src/corelib/kernel/qiterable.cpp
+++ b/src/corelib/kernel/qiterable.cpp
@@ -151,7 +151,7 @@ QT_BEGIN_NAMESPACE
/*!
\fn template<class Container> QIterator<Container> &QIterator<Container>::operator++()
- The prefix ++ operator (\c{++it}) advances the iterator to the
+ The prefix \c{++} operator (\c{++it}) advances the iterator to the
next item in the container and returns an iterator to the new current
item.
@@ -164,7 +164,7 @@ QT_BEGIN_NAMESPACE
\fn template<class Container> QIterator<Container> QIterator<Container>::operator++(int)
\overload
- The postfix ++ operator (\c{it++}) advances the iterator to the
+ The postfix \c{++} operator (\c{it++}) advances the iterator to the
next item in the container and returns an iterator to the previously
current item.
*/
@@ -173,7 +173,7 @@ QT_BEGIN_NAMESPACE
/*!
\fn template<class Container> QIterator<Container> &QIterator<Container>::operator--()
- The prefix -- operator (\c{--it}) makes the preceding item
+ The prefix \c{--} operator (\c{--it}) makes the preceding item
current and returns an iterator to the new current item.
Calling this function on QSequentialIterable::begin() leads to undefined results.
@@ -189,7 +189,7 @@ QT_BEGIN_NAMESPACE
\overload
- The postfix -- operator (\c{it--}) makes the preceding item
+ The postfix \c{--} operator (\c{it--}) makes the preceding item
current and returns an iterator to the previously current item.
If the container in the QVariant does not support bi-directional iteration, calling this function
@@ -240,6 +240,7 @@ QT_BEGIN_NAMESPACE
/*!
\fn template<class Container> qsizetype QIterator<Container>::operator-(const QIterator<Container> &j) const
+ \overload
Returns the distance between the two iterators.
@@ -287,7 +288,7 @@ QT_BEGIN_NAMESPACE
/*!
\fn template<class Container> QConstIterator<Container> &QConstIterator<Container>::operator++()
- The prefix ++ operator (\c{++it}) advances the iterator to the
+ The prefix \c{++} operator (\c{++it}) advances the iterator to the
next item in the container and returns an iterator to the new current
item.
@@ -301,7 +302,7 @@ QT_BEGIN_NAMESPACE
\overload
- The postfix ++ operator (\c{it++}) advances the iterator to the
+ The postfix \c{++} operator (\c{it++}) advances the iterator to the
next item in the container and returns an iterator to the previously
current item.
*/
@@ -309,7 +310,7 @@ QT_BEGIN_NAMESPACE
/*!
\fn template<class Container> QConstIterator<Container> &QConstIterator<Container>::operator--()
- The prefix -- operator (\c{--it}) makes the preceding item
+ The prefix \c{--} operator (\c{--it}) makes the preceding item
current and returns an iterator to the new current item.
Calling this function on QIterable<Container>::begin() leads to undefined results.
@@ -325,7 +326,7 @@ QT_BEGIN_NAMESPACE
\overload
- The postfix -- operator (\c{it--}) makes the preceding item
+ The postfix \c{--} operator (\c{it--}) makes the preceding item
current and returns an iterator to the previously current item.
If the container in the QVariant does not support bi-directional iteration, calling this function
@@ -377,6 +378,8 @@ QT_BEGIN_NAMESPACE
/*!
\fn template <class Container> qsizetype QConstIterator<Container>::operator-(const QConstIterator<Container> &j) const
+ \overload
+
Returns the distance between the two iterators.
\sa operator+(), operator-=(), QIterable::canReverseIterate()
@@ -505,7 +508,7 @@ QT_BEGIN_NAMESPACE
/*!
\fn template<class Iterator, typename IteratorCategory> QTaggedIterator<Iterator, IteratorCategory> &QTaggedIterator<Iterator, IteratorCategory>::operator++()
- The prefix ++ operator (\c{++it}) advances the iterator to the
+ The prefix \c{++} operator (\c{++it}) advances the iterator to the
next item in the container and returns an iterator to the new current
item.
@@ -518,7 +521,7 @@ QT_BEGIN_NAMESPACE
\fn template<class Iterator, typename IteratorCategory> QTaggedIterator<Iterator, IteratorCategory> QTaggedIterator<Iterator, IteratorCategory>::operator++(int)
\overload
- The postfix ++ operator (\c{it++}) advances the iterator to the
+ The postfix \c{++} operator (\c{it++}) advances the iterator to the
next item in the container and returns an iterator to the previously
current item.
*/
@@ -527,7 +530,7 @@ QT_BEGIN_NAMESPACE
/*!
\fn template<class Iterator, typename IteratorCategory> QTaggedIterator<Iterator, IteratorCategory> &QTaggedIterator<Iterator, IteratorCategory>::operator--()
- The prefix -- operator (\c{--it}) makes the preceding item
+ The prefix \c{--} operator (\c{--it}) makes the preceding item
current and returns an iterator to the new current item.
Calling this function on QSequentialIterable::begin() leads to undefined results.
@@ -542,7 +545,7 @@ QT_BEGIN_NAMESPACE
\fn template<class Iterator, typename IteratorCategory> QTaggedIterator<Iterator, IteratorCategory> QTaggedIterator<Iterator, IteratorCategory>::operator--(int)
\overload
- The postfix -- operator (\c{it--}) makes the preceding item
+ The postfix \c{--} operator (\c{it--}) makes the preceding item
current and returns an iterator to the previously current item.
If the container in the QVariant does not support bi-directional iteration, calling this function