region: add convenience zero() constructor

This commit is contained in:
Danny Robson 2017-08-16 17:25:56 +10:00
parent 651324d6f9
commit d6b77f879f

View File

@ -102,6 +102,9 @@ namespace util {
static constexpr region<S,T> max (void);
static constexpr region<S,T> unit (void);
static constexpr region<S,T> zero (void)
{ return { point_t {0}, extent_t {0} }; }
void sanity (void) const;
};