Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QMap< Key, T >::iterator Class Reference

#include <qmap.h>

+ Collaboration diagram for QMap< Key, T >::iterator:

Public Types

using iterator_category = std::bidirectional_iterator_tag
 
using difference_type = qptrdiff
 
using value_type = T
 
using pointer = T *
 
using reference = T &
 

Public Member Functions

 iterator ()=default
 
const Keykey () const
 
T & value () const
 
T & operator* () const
 
T * operator-> () const
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
iteratoroperator-- ()
 
iterator operator-- (int)
 

Friends

class QMap< Key, T >
 
class const_iterator
 
bool operator== (const iterator &lhs, const iterator &rhs)
 
bool operator!= (const iterator &lhs, const iterator &rhs)
 

Detailed Description

template<class Key, class T>
class QMap< Key, T >::iterator

Definition at line 426 of file qmap.h.

Member Typedef Documentation

◆ difference_type

template<class Key , class T >
using QMap< Key, T >::iterator::difference_type = qptrdiff

Definition at line 435 of file qmap.h.

◆ iterator_category

template<class Key , class T >
using QMap< Key, T >::iterator::iterator_category = std::bidirectional_iterator_tag

Definition at line 434 of file qmap.h.

◆ pointer

template<class Key , class T >
using QMap< Key, T >::iterator::pointer = T *

Definition at line 437 of file qmap.h.

◆ reference

template<class Key , class T >
using QMap< Key, T >::iterator::reference = T &

Definition at line 438 of file qmap.h.

◆ value_type

template<class Key , class T >
using QMap< Key, T >::iterator::value_type = T

Definition at line 436 of file qmap.h.

Constructor & Destructor Documentation

◆ iterator()

template<class Key , class T >
QMap< Key, T >::iterator::iterator ( )
default

Member Function Documentation

◆ key()

template<class Key , class T >
const Key & QMap< Key, T >::iterator::key ( ) const
inline

Definition at line 442 of file qmap.h.

References i.

◆ operator*()

template<class Key , class T >
T & QMap< Key, T >::iterator::operator* ( ) const
inline

Definition at line 444 of file qmap.h.

References i.

◆ operator++() [1/2]

template<class Key , class T >
iterator & QMap< Key, T >::iterator::operator++ ( )
inline

Definition at line 449 of file qmap.h.

References i.

◆ operator++() [2/2]

template<class Key , class T >
iterator QMap< Key, T >::iterator::operator++ ( int )
inline

Definition at line 454 of file qmap.h.

References i.

◆ operator--() [1/2]

template<class Key , class T >
iterator & QMap< Key, T >::iterator::operator-- ( )
inline

Definition at line 460 of file qmap.h.

References i.

◆ operator--() [2/2]

template<class Key , class T >
iterator QMap< Key, T >::iterator::operator-- ( int )
inline

Definition at line 465 of file qmap.h.

References i.

◆ operator->()

template<class Key , class T >
T * QMap< Key, T >::iterator::operator-> ( ) const
inline

Definition at line 445 of file qmap.h.

References i.

◆ value()

template<class Key , class T >
T & QMap< Key, T >::iterator::value ( ) const
inline

Definition at line 443 of file qmap.h.

References i.

Referenced by QCompletionEngine::saveInCache().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ const_iterator

template<class Key , class T >
friend class const_iterator
friend

Definition at line 429 of file qmap.h.

◆ operator!=

template<class Key , class T >
bool operator!= ( const iterator & lhs,
const iterator & rhs )
friend

Definition at line 447 of file qmap.h.

◆ operator==

template<class Key , class T >
bool operator== ( const iterator & lhs,
const iterator & rhs )
friend

Definition at line 446 of file qmap.h.

◆ QMap< Key, T >

template<class Key , class T >
friend class QMap< Key, T >
friend

Definition at line 796 of file qmap.h.


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