summaryrefslogtreecommitdiff
path: root/src/core/RangeSet.hpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-30 18:18:02 +0100
committerAndreas Stöckel <andreas@somweyr.de>2015-01-30 18:18:02 +0100
commit0ed53efd407fb4e5462c3c1f606be90bb3f7241b (patch)
treeefa7e55bdf1925fbf1ef5e2ad5155033d4d29713 /src/core/RangeSet.hpp
parent729ea17ed17cf81eb19847216406e40686df679d (diff)
Added "Cardinality" type and AnyCardinality constant to RangeSet
Diffstat (limited to 'src/core/RangeSet.hpp')
-rw-r--r--src/core/RangeSet.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/RangeSet.hpp b/src/core/RangeSet.hpp
index fc0070f..f5b56e2 100644
--- a/src/core/RangeSet.hpp
+++ b/src/core/RangeSet.hpp
@@ -19,6 +19,7 @@
#ifndef _OUSIA_RANGE_SET_HPP_
#define _OUSIA_RANGE_SET_HPP_
+#include <cstddef>
#include <limits>
#include <set>
@@ -412,6 +413,13 @@ public:
return !(lhs == rhs);
}
};
+
+/**
+ * This is the default cardinality.
+ */
+using Cardinality = RangeSet<size_t>;
+extern const Cardinality AnyCardinality;
+
}
#endif /* _OUSIA_RANGE_SET_HPP_ */