Mercurial > dedupe
comparison OrderedPair.hpp @ 9:b5943e4bf676
Fix up header includes.
Introduce outer catch.
Fix coding style.
Remove spurious debug output.
| author | Tom Fredrik Blenning Klaussen <bfg@blenning.no> |
|---|---|
| date | Wed, 22 Aug 2012 18:48:07 +0200 |
| parents | a3834af36579 |
| children | b9515dc35fe4 |
comparison
equal
deleted
inserted
replaced
| 8:d7b384b4a834 | 9:b5943e4bf676 |
|---|---|
| 5 | 5 |
| 6 template <typename S> | 6 template <typename S> |
| 7 class OrderedPair : public QPair<S, S> | 7 class OrderedPair : public QPair<S, S> |
| 8 { | 8 { |
| 9 public: | 9 public: |
| 10 OrderedPair(const S& a, const S&b) : QPair<S, S>(a<b?a:b, a<b?b:a) | 10 OrderedPair(const S& a, const S& b) : QPair<S, S>(a < b ? a : b, a < b ? b : a) |
| 11 { | 11 { |
| 12 } | 12 } |
| 13 }; | 13 }; |
| 14 | 14 |
| 15 #endif //ORDEREDPAIR_HPP | 15 #endif //ORDEREDPAIR_HPP |
