- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Directories
- Examples

- File List
- File Members

Classes | Functions

# qmap.h File Reference

`#include <QtCore/qatomic.h>`
`#include <QtCore/qiterator.h>`
`#include <QtCore/qlist.h>`
`#include <map>`
`#include <new>`

Go to the source code of this file.

## Classes
struct | QMapData
struct | QMapData::Node
struct | QMapNode< Key, T >
struct | QMapPayloadNode< Key, T >
class | QMap< Key, T >
class | QMap< Key, T >::iterator
class | QMap< Key, T >::const_iterator
class | QMultiMap< Key, T >
## Functions
template<class Key >
bool | qMapLessThanKey (const Key &key1, const Key &key2)
template<class Ptr >
bool | qMapLessThanKey (Ptr *key1, Ptr *key2)
template<class Ptr >
bool | qMapLessThanKey (const Ptr *key1, const Ptr *key2)

## Function Documentation

bool qMapLessThanKey | ( | const Key & | key1,
|  | const Key & | key2
| ) |  | `[inline]`

Search for all occurrences

Definition at line 105 of file qmap.h.

    {
        return key1 < key2;
    }

bool qMapLessThanKey | ( | Ptr * | key1,
|  | Ptr * | key2
| ) |  | `[inline]`

Search for all occurrences

Definition at line 111 of file qmap.h.

    {
        Q_ASSERT(sizeof(quintptr) == sizeof(Ptr *));
        return quintptr(key1) < quintptr(key2);
    }

bool qMapLessThanKey | ( | const Ptr * | key1,
|  | const Ptr * | key2
| ) |  | `[inline]`

Search for all occurrences

Definition at line 117 of file qmap.h.

    {
        Q_ASSERT(sizeof(quintptr) == sizeof(const Ptr *));
        return quintptr(key1) < quintptr(key2);
    }