Mercurial > dedupe
view OrderedPair.hpp @ 58:7b7e84356b39
Introduce API for fine tuning inserts.
Reduce the amount of rebuilds.
| author | Tom Fredrik Blenning Klaussen <bfg@blenning.no> |
|---|---|
| date | Fri, 14 Sep 2012 00:04:24 +0200 |
| parents | b5943e4bf676 |
| children | b9515dc35fe4 |
line wrap: on
line source
#ifndef ORDEREDPAIR_HPP #define ORDEREDPAIR_HPP #include <QtCore/QPair> template <typename S> class OrderedPair : public QPair<S, S> { public: OrderedPair(const S& a, const S& b) : QPair<S, S>(a < b ? a : b, a < b ? b : a) { } }; #endif //ORDEREDPAIR_HPP
