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

- Class List
- Class Hierarchy
- Class Members

Public Types | Public Member Functions | Public Attributes

# QPair< T1, T2 > Struct Template Reference

Search for all occurrences

## Detailed Description

### template<class T1, class T2>
struct QPair< T1, T2 >

Definition at line 54 of file qpair.h.

`#include <qpair.h>`

List of all members.

## Public Types
typedef T1 | first_type
typedef T2 | second_type
## Public Member Functions
| QPair ()
| QPair (const T1 &t1, const T2 &t2)
QPair< T1, T2 > & | operator= (const QPair< T1, T2 > &other)
## Public Attributes
T1 | first
T2 | second

## Member Typedef Documentation

typedef T1 first_type

Search for all occurrences

Definition at line 56 of file qpair.h.

typedef T2 second_type

Search for all occurrences

Definition at line 57 of file qpair.h.

## Constructor & Destructor Documentation

QPair | ( |  | ) | `[inline]`

Definition at line 59 of file qpair.h.

    : first(T1()), second(T2()) {}

QPair | ( | const T1 & | t1,
|  | const T2 & | t2
| ) |  | `[inline]`

Definition at line 60 of file qpair.h.

    : first(t1), second(t2) {}

## Member Function Documentation

QPair<T1, T2>& operator= | ( | const QPair< T1, T2 > & | other | ) | `[inline]`

Definition at line 62 of file qpair.h.

        { first = other.first; second = other.second; return *this; }

## Member Data Documentation

T1 first

Search for all occurrences

Definition at line 65 of file qpair.h.

T2 second

Search for all occurrences

Definition at line 66 of file qpair.h.

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

- QtCore/qpair.h