summaryrefslogtreecommitdiffstats
path: root/core/pair.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-02-01 09:45:45 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-02-01 09:46:36 -0300
commit2cd2ca7bbc892eccc635b1c4aea80c956c9b92dc (patch)
tree0a212bf8786c53ec7b054757071dc2430667d3a1 /core/pair.h
parent36b6ba8e94d9afcb06aa2579bf627651f7ebfea0 (diff)
downloadredot-engine-2cd2ca7bbc892eccc635b1c4aea80c956c9b92dc.tar.gz
Lot of work in new importer, importing textures now works.
Diffstat (limited to 'core/pair.h')
-rw-r--r--core/pair.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/pair.h b/core/pair.h
index d75cbed642..174ffb3883 100644
--- a/core/pair.h
+++ b/core/pair.h
@@ -39,4 +39,13 @@ struct Pair {
Pair( F p_first, S p_second) { first=p_first; second=p_second; }
};
+template<class F,class S>
+struct PairSort {
+
+ bool operator()(const Pair<F,S>& A, const Pair<F,S>& B) const {
+ return A.first < B.first;
+ }
+};
+
+
#endif // PAIR_H