TF++, Miscellaneous classes and modules in C++:

◆ shrink()

template<class T = int>
Range& tfxx::Range< T >::shrink ( const Range< T > &  other)
inline

shrink to smaller of this and the other

Definition at line 80 of file range.h.

81  {
82  Mfirst=Mfirst>other.first() ? Mfirst:other.first();
83  Mlast=Mlast<other.last() ? Mlast:other.last();
84  return *this;
85  }
Tvalue Mlast
end of range.
Definition: range.h:104
Tvalue Mfirst
start of range.
Definition: range.h:103