45 #include <QtCore/qdatastream.h> 53 template <
class T1,
class T2>
69 template <
class T1,
class T2>
73 template <
class T1,
class T2>
75 {
return !(p1 == p2); }
77 template <
class T1,
class T2>
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>
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>
116 inline QDataStream& operator<<(QDataStream& s, const QPair<T1, T2>& p)
118 s << p.first << p.second;
#define QT_END_NAMESPACE
This macro expands to.
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
This macro expands to.
#define Q_INLINE_TEMPLATE
QPair(const T1 &t1, const T2 &t2)
QPair< T1, T2 > & operator=(const QPair< T1, T2 > &other)
QDataStream & operator>>(QDataStream &s, QPair< T1, T2 > &p)
Q_OUTOFLINE_TEMPLATE QPair< T1, T2 > qMakePair(const T1 &x, const T2 &y)
The QDataStream class provides serialization of binary data to a QIODevice.
#define Q_OUTOFLINE_TEMPLATE