region: add union-assignment operator

This commit is contained in:
Danny Robson 2024-11-08 14:37:46 +10:00
parent ba7986fce3
commit 1ae19b9c65

View File

@ -258,6 +258,15 @@ namespace cruft {
} }
//-------------------------------------------------------------------------
template <typename T, size_t S>
region<S,T>&
operator|= (region<S,T> &a, region<S,T> const &b)
{
return a = a | b;
}
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
/// Construct a region that consists of the overlapping portions of two /// Construct a region that consists of the overlapping portions of two
/// supplied regions. /// supplied regions.