Implementing division operators.

This commit is contained in:
Marc Rollins 2014-08-18 11:48:38 -07:00
parent d7a8166720
commit d3d9b538c7

View File

@ -1326,6 +1326,21 @@ Size_<_Tp> operator * (Size_<_Tp> a, _Tp b)
return a;
}
template<typename _Tp> static inline
Size_<_Tp>& operator /= (Size_<_Tp>& a, _Tp b)
{
a.width /= b;
a.height /= b;
return a;
}
template<typename _Tp> static inline
Size_<_Tp> operator / (Size_<_Tp> a, _Tp b)
{
a /= b;
return a;
}
template<typename _Tp> static inline
Size_<_Tp> operator + (const Size_<_Tp>& a, const Size_<_Tp>& b)
{