region: add three dimensional typedefs
This commit is contained in:
parent
77c7d87d60
commit
4f3fd9547d
11
region.hpp
11
region.hpp
@ -111,10 +111,13 @@ namespace util {
|
|||||||
void sanity (void) const;
|
void sanity (void) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef region<2,unsigned> region2u;
|
template <typename T> using region2 = region<2,T>;
|
||||||
typedef region<2,int> region2i;
|
template <typename T> using region3 = region<3,T>;
|
||||||
typedef region<2,float> region2f;
|
|
||||||
typedef region<2,double> region2d;
|
using region2u = region2<unsigned>;
|
||||||
|
using region2i = region2<int>;
|
||||||
|
using region2f = region2<float>;
|
||||||
|
using region2d = region2<double>;
|
||||||
|
|
||||||
template <size_t S, typename T>
|
template <size_t S, typename T>
|
||||||
std::ostream& operator<< (std::ostream&, const util::region<S,T>&);
|
std::ostream& operator<< (std::ostream&, const util::region<S,T>&);
|
||||||
|
Loading…
Reference in New Issue
Block a user