Implementing division operators.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user