region: add union-assignment operator
This commit is contained in:
parent
ba7986fce3
commit
1ae19b9c65
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user