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 vectori = vector<S,int>;
template <size_t S> using vectorf = vector<S,float>;
template <std::size_t S> using vectorb = vector<S,bool>;
typedef vector2<unsigned> vector2u;
typedef vector3<unsigned> vector3u;
typedef vector4<unsigned> vector4u;
using vector2u = vector2<unsigned>;
using vector3u = vector3<unsigned>;
using vector4u = vector4<unsigned>;
typedef vector2<int> vector2i;
typedef vector3<int> vector3i;
typedef vector4<int> vector4i;
using vector2i = vector2<int>;
using vector3i = vector3<int>;
using vector4i = vector4<int>;
typedef vector2<float> vector2f;
typedef vector3<float> vector3f;
typedef vector4<float> vector4f;
using vector2f = vector2<float>;
using vector3f = vector3<float>;
using vector4f = vector4<float>;
typedef vector2<double> vector2d;
typedef vector3<double> vector3d;
typedef vector4<double> vector4d;
using vector2d = vector2<double>;
using vector3d = vector3<double>;
using vector4d = vector4<double>;
using vector2b = vector2<bool>;
using vector3b = vector3<bool>;
using vector4b = vector4<bool>;
}
#include "vector.ipp"