xo-gc: tidy: + Generation methods .g0(), .g1()
Use in GCObjectStore.test.cpp
This commit is contained in:
parent
c3c9d9c94d
commit
e8950760dc
1 changed files with 2 additions and 0 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue