~
[scx.git] / include / DataType.hpp
blob2d4f4e882073dfaeaf32e29dbf5b09abf4b8440e
1 #ifndef SCX_DATATYPE_HPP
2 #define SCX_DATATYPE_HPP
4 namespace scx {
6 template <typename T>
7 struct Value
9 T val;
10 T max;
11 T min;
13 Value()
17 Value(T a, T b, T c):
18 val(a),
19 max(b),
20 min(c)
24 Value(T a):
25 val(a)
29 Value(T a, T b):
30 max(a),
31 min(b)
35 Value(const Value& val):
36 val(val.val),
37 max(val.max),
38 min(val.min)
44 #endif