xo-allocutil: streamlet: object_interface_type

This commit is contained in:
Roland Conybeare 2025-12-03 21:27:42 -05:00
commit b8c41b9317

View file

@ -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<Allocator>::object_interface_type
//
using object_interface_type = object_interface<Allocator>;
/** true iff this allocator advertises itself as an incremental collector
* allocator will include:
*