Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QList< T >::const_iterator Class Reference

#include <qlist.h>

+ Collaboration diagram for QList< T >::const_iterator:

Public Types

using difference_type = qsizetype
 
using value_type = T
 
using element_type = const value_type
 
using iterator_category = std::random_access_iterator_tag
 
using pointer = const T *
 
using reference = const T &
 

Public Member Functions

constexpr const_iterator ()=default
 
constexpr const_iterator (iterator o)
 
const T & operator* () const
 
const T * operator-> () const
 
const T & operator[] (qsizetype j) const
 
constexpr bool operator== (const_iterator o) const
 
constexpr bool operator!= (const_iterator o) const
 
constexpr bool operator< (const_iterator other) const
 
constexpr bool operator<= (const_iterator other) const
 
constexpr bool operator> (const_iterator other) const
 
constexpr bool operator>= (const_iterator other) const
 
constexpr bool operator== (iterator o) const
 
constexpr bool operator!= (iterator o) const
 
constexpr bool operator< (iterator other) const
 
constexpr bool operator<= (iterator other) const
 
constexpr bool operator> (iterator other) const
 
constexpr bool operator>= (iterator other) const
 
constexpr bool operator== (pointer p) const
 
constexpr bool operator!= (pointer p) const
 
const_iteratoroperator++ ()
 
const_iterator operator++ (int)
 
const_iteratoroperator-- ()
 
const_iterator operator-- (int)
 
qsizetype operator- (const_iterator j) const
 
const_iteratoroperator+= (qsizetype j)
 
const_iteratoroperator-= (qsizetype j)
 
const_iterator operator+ (qsizetype j) const
 
const_iterator operator- (qsizetype j) const
 

Friends

class QList< T >
 
class iterator
 
const_iterator operator+ (qsizetype j, const_iterator k)
 

Detailed Description

template<typename T>
class QList< T >::const_iterator

Definition at line 180 of file qlist.h.

Member Typedef Documentation

◆ difference_type

template<typename T >
using QList< T >::const_iterator::difference_type = qsizetype

Definition at line 189 of file qlist.h.

◆ element_type

template<typename T >
using QList< T >::const_iterator::element_type = const value_type

Definition at line 194 of file qlist.h.

◆ iterator_category

template<typename T >
using QList< T >::const_iterator::iterator_category = std::random_access_iterator_tag

Definition at line 195 of file qlist.h.

◆ pointer

template<typename T >
using QList< T >::const_iterator::pointer = const T *

Definition at line 196 of file qlist.h.

◆ reference

template<typename T >
using QList< T >::const_iterator::reference = const T &

Definition at line 197 of file qlist.h.

◆ value_type

template<typename T >
using QList< T >::const_iterator::value_type = T

Definition at line 190 of file qlist.h.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

template<typename T >
QList< T >::const_iterator::const_iterator ( )
inlineconstexprdefault

◆ const_iterator() [2/2]

template<typename T >
QList< T >::const_iterator::const_iterator ( iterator o)
inlineconstexpr

Definition at line 203 of file qlist.h.

Member Function Documentation

◆ operator!=() [1/3]

template<typename T >
bool QList< T >::const_iterator::operator!= ( const_iterator o) const
inlineconstexpr

Definition at line 208 of file qlist.h.

◆ operator!=() [2/3]

template<typename T >
bool QList< T >::const_iterator::operator!= ( iterator o) const
inlineconstexpr

Definition at line 214 of file qlist.h.

◆ operator!=() [3/3]

template<typename T >
bool QList< T >::const_iterator::operator!= ( pointer p) const
inlineconstexpr

Definition at line 220 of file qlist.h.

◆ operator*()

template<typename T >
const T & QList< T >::const_iterator::operator* ( ) const
inline

Definition at line 204 of file qlist.h.

◆ operator+()

template<typename T >
const_iterator QList< T >::const_iterator::operator+ ( qsizetype j) const
inline

Definition at line 245 of file qlist.h.

◆ operator++() [1/2]

template<typename T >
const_iterator & QList< T >::const_iterator::operator++ ( )
inline

Definition at line 221 of file qlist.h.

◆ operator++() [2/2]

template<typename T >
const_iterator QList< T >::const_iterator::operator++ ( int )
inline

Definition at line 222 of file qlist.h.

◆ operator+=()

template<typename T >
const_iterator & QList< T >::const_iterator::operator+= ( qsizetype j)
inline

Definition at line 243 of file qlist.h.

◆ operator-() [1/2]

template<typename T >
qsizetype QList< T >::const_iterator::operator- ( const_iterator j) const
inline

Definition at line 225 of file qlist.h.

◆ operator-() [2/2]

template<typename T >
const_iterator QList< T >::const_iterator::operator- ( qsizetype j) const
inline

Definition at line 246 of file qlist.h.

◆ operator--() [1/2]

template<typename T >
const_iterator & QList< T >::const_iterator::operator-- ( )
inline

Definition at line 223 of file qlist.h.

◆ operator--() [2/2]

template<typename T >
const_iterator QList< T >::const_iterator::operator-- ( int )
inline

Definition at line 224 of file qlist.h.

◆ operator-=()

template<typename T >
const_iterator & QList< T >::const_iterator::operator-= ( qsizetype j)
inline

Definition at line 244 of file qlist.h.

◆ operator->()

template<typename T >
const T * QList< T >::const_iterator::operator-> ( ) const
inline

Definition at line 205 of file qlist.h.

◆ operator<() [1/2]

template<typename T >
bool QList< T >::const_iterator::operator< ( const_iterator other) const
inlineconstexpr

Definition at line 209 of file qlist.h.

◆ operator<() [2/2]

template<typename T >
bool QList< T >::const_iterator::operator< ( iterator other) const
inlineconstexpr

Definition at line 215 of file qlist.h.

◆ operator<=() [1/2]

template<typename T >
bool QList< T >::const_iterator::operator<= ( const_iterator other) const
inlineconstexpr

Definition at line 210 of file qlist.h.

◆ operator<=() [2/2]

template<typename T >
bool QList< T >::const_iterator::operator<= ( iterator other) const
inlineconstexpr

Definition at line 216 of file qlist.h.

◆ operator==() [1/3]

template<typename T >
bool QList< T >::const_iterator::operator== ( const_iterator o) const
inlineconstexpr

Definition at line 207 of file qlist.h.

◆ operator==() [2/3]

template<typename T >
bool QList< T >::const_iterator::operator== ( iterator o) const
inlineconstexpr

Definition at line 213 of file qlist.h.

◆ operator==() [3/3]

template<typename T >
bool QList< T >::const_iterator::operator== ( pointer p) const
inlineconstexpr

Definition at line 219 of file qlist.h.

◆ operator>() [1/2]

template<typename T >
bool QList< T >::const_iterator::operator> ( const_iterator other) const
inlineconstexpr

Definition at line 211 of file qlist.h.

◆ operator>() [2/2]

template<typename T >
bool QList< T >::const_iterator::operator> ( iterator other) const
inlineconstexpr

Definition at line 217 of file qlist.h.

◆ operator>=() [1/2]

template<typename T >
bool QList< T >::const_iterator::operator>= ( const_iterator other) const
inlineconstexpr

Definition at line 212 of file qlist.h.

◆ operator>=() [2/2]

template<typename T >
bool QList< T >::const_iterator::operator>= ( iterator other) const
inlineconstexpr

Definition at line 218 of file qlist.h.

◆ operator[]()

template<typename T >
const T & QList< T >::const_iterator::operator[] ( qsizetype j) const
inline

Definition at line 206 of file qlist.h.

Friends And Related Symbol Documentation

◆ iterator

template<typename T >
friend class iterator
friend

Definition at line 182 of file qlist.h.

◆ operator+

template<typename T >
const_iterator operator+ ( qsizetype j,
const_iterator k )
friend

Definition at line 247 of file qlist.h.

◆ QList< T >

template<typename T >
friend class QList< T >
friend

Definition at line 176 of file qlist.h.


The documentation for this class was generated from the following file: