src/corelib/tools/qhash.h
branchRCL_3
changeset 7 3f74d0d4af4c
parent 4 3b1da2848fc7
equal deleted inserted replaced
6:dee5afe5301f 7:3f74d0d4af4c
   327         friend class const_iterator;
   327         friend class const_iterator;
   328         QHashData::Node *i;
   328         QHashData::Node *i;
   329 
   329 
   330     public:
   330     public:
   331         typedef std::bidirectional_iterator_tag iterator_category;
   331         typedef std::bidirectional_iterator_tag iterator_category;
   332         typedef ptrdiff_t difference_type;
   332         typedef qptrdiff difference_type;
   333         typedef T value_type;
   333         typedef T value_type;
   334         typedef T *pointer;
   334         typedef T *pointer;
   335         typedef T &reference;
   335         typedef T &reference;
   336 
   336 
   337         // ### Qt 5: get rid of 'operator Node *'
   337         // ### Qt 5: get rid of 'operator Node *'
   392         friend class iterator;
   392         friend class iterator;
   393         QHashData::Node *i;
   393         QHashData::Node *i;
   394 
   394 
   395     public:
   395     public:
   396         typedef std::bidirectional_iterator_tag iterator_category;
   396         typedef std::bidirectional_iterator_tag iterator_category;
   397         typedef ptrdiff_t difference_type;
   397         typedef qptrdiff difference_type;
   398         typedef T value_type;
   398         typedef T value_type;
   399         typedef const T *pointer;
   399         typedef const T *pointer;
   400         typedef const T &reference;
   400         typedef const T &reference;
   401 
   401 
   402         // ### Qt 5: get rid of 'operator Node *'
   402         // ### Qt 5: get rid of 'operator Node *'
   476     QHash<Key, T> &unite(const QHash<Key, T> &other);
   476     QHash<Key, T> &unite(const QHash<Key, T> &other);
   477 
   477 
   478     // STL compatibility
   478     // STL compatibility
   479     typedef T mapped_type;
   479     typedef T mapped_type;
   480     typedef Key key_type;
   480     typedef Key key_type;
   481     typedef ptrdiff_t difference_type;
   481     typedef qptrdiff difference_type;
   482     typedef int size_type;
   482     typedef int size_type;
   483 
   483 
   484     inline bool empty() const { return isEmpty(); }
   484     inline bool empty() const { return isEmpty(); }
   485 
   485 
   486 #ifdef QT_QHASH_DEBUG
   486 #ifdef QT_QHASH_DEBUG