From e8950760dccf864e5c7abdd15cd2f6863ece6881 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sun, 12 Apr 2026 15:42:49 -0400 Subject: [PATCH] xo-gc: tidy: + Generation methods .g0(), .g1() Use in GCObjectStore.test.cpp --- include/xo/alloc2/Generation.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/xo/alloc2/Generation.hpp b/include/xo/alloc2/Generation.hpp index a311c60..0eb2407 100644 --- a/include/xo/alloc2/Generation.hpp +++ b/include/xo/alloc2/Generation.hpp @@ -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; }