From b8c41b9317c0149005ce6c8dc80bceb00bb1f545 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Wed, 3 Dec 2025 21:27:42 -0500 Subject: [PATCH] xo-allocutil: streamlet: object_interface_type --- include/xo/allocutil/gc_allocator_traits.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/xo/allocutil/gc_allocator_traits.hpp b/include/xo/allocutil/gc_allocator_traits.hpp index 38e7f38..30cbb4f 100644 --- a/include/xo/allocutil/gc_allocator_traits.hpp +++ b/include/xo/allocutil/gc_allocator_traits.hpp @@ -93,6 +93,14 @@ namespace xo { : public A::gc_object_interface { }; + // classes that want to conditionally support GC + // (e.g. see xo::tree::RedBlackTree, xo::tree::Node + // in xo-ordinal-tree) + // can inherit + // gc_allocator_traits::object_interface_type + // + using object_interface_type = object_interface; + /** true iff this allocator advertises itself as an incremental collector * allocator will include: *