range: add subtraction operator definition

This commit is contained in:
Danny Robson 2015-09-29 17:31:20 +10:00
parent 91a01c2742
commit c037055c95

View File

@ -114,6 +114,15 @@ util::range<T>::operator* (T val) const
}
//-----------------------------------------------------------------------------
template <typename T>
util::range<T>
util::range<T>::operator- (T val) const
{
return util::range<T> (min - val, max - val);
}
///////////////////////////////////////////////////////////////////////////////
namespace util {
template <>