LibGC: Add ability to construct RootVector<T> from a span of T

This commit is contained in:
Andreas Kling 2025-01-21 13:47:27 +01:00 committed by Jelle Raaijmakers
parent 6a798732b9
commit 34a8f51eb8
Notes: github-actions[bot] 2025-01-21 16:03:59 +00:00

View file

@ -46,6 +46,12 @@ public:
virtual ~RootVector() = default;
RootVector(Heap& heap, ReadonlySpan<T> other)
: RootVectorBase(heap)
, Vector<T, inline_capacity>(other)
{
}
RootVector(RootVector const& other)
: RootVectorBase(*other.m_heap)
, Vector<T, inline_capacity>(other)