xo-gc: tidy: + Generation methods .g0(), .g1()

Use in GCObjectStore.test.cpp
This commit is contained in:
Roland Conybeare 2026-04-12 15:42:49 -04:00
commit e8950760dc

View file

@ -24,6 +24,8 @@ namespace xo {
explicit constexpr Generation(value_type x) : value_{x} {}
static Generation nursery() { return Generation{0}; }
static Generation g0() { return Generation{0}; }
static Generation g1() { return Generation{1}; }
static Generation sentinel() { return Generation(c_max_generation); }
bool is_sentinel() const noexcept { return value_ == c_max_generation; }