From f39ee922f1ed2a7f0b2e856c7faf342e7c0c522c 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 --- xo-allocutil/include/xo/allocutil/gc_allocator_traits.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xo-allocutil/include/xo/allocutil/gc_allocator_traits.hpp b/xo-allocutil/include/xo/allocutil/gc_allocator_traits.hpp index 38e7f384..30cbb4f4 100644 --- a/xo-allocutil/include/xo/allocutil/gc_allocator_traits.hpp +++ b/xo-allocutil/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: *