QTaggedIterator Class
template <typename Iterator, typename IteratorCategory> class QTaggedIteratorWraps an iterator and exposes standard iterator traits. More...
Header: | #include <QTaggedIterator> |
CMake: | find_package(Qt6 COMPONENT Core) target_link_libraries(mytarget PUBLIC Qt::Core) |
qmake: | QT += core |
Since: | Qt 6.0 |
Detailed Description
In order to use an iterator any of the standard algorithms, it iterator traits need to be known. As QSequentialIterable can work with many different kinds of containers, we cannot declare the traits in the iterator classes themselves. StdIterator gives you a way to explicitly declare a trait for a concrete instance of an iterator or QConstIterator.