region: add three dimensional typedefs

This commit is contained in:
Danny Robson 2016-10-25 20:02:19 +11:00
parent 77c7d87d60
commit 4f3fd9547d

View File

@ -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>&);