+ xo-alloc + xo-object + xo-alloc docs + GC utests

This commit is contained in:
Roland Conybeare 2025-08-03 15:59:38 -05:00
commit 5f46b51f12
32 changed files with 2903 additions and 82 deletions

View file

@ -0,0 +1,28 @@
/* Forwarding.hpp
*
* author: Roland Conybeare, Jul 2025
*/
#pragma once
#include "Object.hpp"
namespace xo {
namespace gc {
class Forwarding : public Object {
public:
Forwarding() = default;
// inherited from Object..
#ifdef NOT_USING
virtual bool _is_forwarded() const override final { return true; }
#endif
virtual Object * _destination() override final { return destination_.ptr(); }
private:
gp<Object> destination_;
};
} /*namespace gc*/
} /*namespace xo*/
/* end Forwarding.hpp */