range: add subtraction operator definition
This commit is contained in:
parent
91a01c2742
commit
c037055c95
@ -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 <>
|
||||
|
Loading…
Reference in New Issue
Block a user