QtCore/qpair.h Source File
Go to the documentation of this file.
53 template <class T1, class T2>
60 QPair(
const T1 &t1,
const T2 &t2) :
first(t1), second(t2) {}
69 template <
class T1,
class T2>
73 template <
class T1,
class T2>
75 {
return !(p1 == p2); }
77 template <
class T1,
class T2>
78 Q_INLINE_TEMPLATE
bool operator<(const QPair<T1, T2> &p1,
const QPair<T1, T2> &p2)
80 return p1.
first < p2.first || (!(p2.first < p1.first) && p1.second < p2.second);
83 template <
class T1,
class T2>
89 template <
class T1,
class T2>
90 Q_INLINE_TEMPLATE
bool operator<=(const QPair<T1, T2> &p1,
const QPair<T1, T2> &p2)
95 template <
class T1,
class T2>
101 template <
class T1,
class T2>
107 #ifndef QT_NO_DATASTREAM
108 template <
class T1,
class T2>
115 template <
class T1,
class T2>
118 s <<
p.first <<
p.second;
QPair(const T1 &t1, const T2 &t2)
Q_INLINE_TEMPLATE bool operator>=(const QPair< T1, T2 > &p1, const QPair< T1, T2 > &p2)
Q_INLINE_TEMPLATE bool operator!=(const QPair< T1, T2 > &p1, const QPair< T1, T2 > &p2)
Q_INLINE_TEMPLATE bool operator==(const QPair< T1, T2 > &p1, const QPair< T1, T2 > &p2)
Q_INLINE_TEMPLATE bool operator>(const QPair< T1, T2 > &p1, const QPair< T1, T2 > &p2)
#define QT_BEGIN_NAMESPACE
QDataStream & operator>>(QDataStream &s, QPair< T1, T2 > &p)
Q_OUTOFLINE_TEMPLATE QPair< T1, T2 > qMakePair(const T1 &x, const T2 &y)
QPair< T1, T2 > & operator=(const QPair< T1, T2 > &other)