vector: add more convenience typedefs for bools

This commit is contained in:
Danny Robson 2017-08-27 12:28:00 +10:00
parent 677a0aa4a9
commit cde0fe882e

View File

@ -68,22 +68,27 @@ namespace util {
template <size_t S> using vectoru = vector<S,unsigned>; template <size_t S> using vectoru = vector<S,unsigned>;
template <size_t S> using vectori = vector<S,int>; template <size_t S> using vectori = vector<S,int>;
template <size_t S> using vectorf = vector<S,float>; template <size_t S> using vectorf = vector<S,float>;
template <std::size_t S> using vectorb = vector<S,bool>;
typedef vector2<unsigned> vector2u; using vector2u = vector2<unsigned>;
typedef vector3<unsigned> vector3u; using vector3u = vector3<unsigned>;
typedef vector4<unsigned> vector4u; using vector4u = vector4<unsigned>;
typedef vector2<int> vector2i; using vector2i = vector2<int>;
typedef vector3<int> vector3i; using vector3i = vector3<int>;
typedef vector4<int> vector4i; using vector4i = vector4<int>;
typedef vector2<float> vector2f; using vector2f = vector2<float>;
typedef vector3<float> vector3f; using vector3f = vector3<float>;
typedef vector4<float> vector4f; using vector4f = vector4<float>;
typedef vector2<double> vector2d; using vector2d = vector2<double>;
typedef vector3<double> vector3d; using vector3d = vector3<double>;
typedef vector4<double> vector4d; using vector4d = vector4<double>;
using vector2b = vector2<bool>;
using vector3b = vector3<bool>;
using vector4b = vector4<bool>;
} }
#include "vector.ipp" #include "vector.ipp"