mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibGC: Add ability to construct RootVector<T> from a span of T
This commit is contained in:
parent
6a798732b9
commit
34a8f51eb8
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user