mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibGC: Add ability to construct RootVector<T> from a span of T
This commit is contained in:
parent
6a798732b9
commit
34a8f51eb8
Notes:
github-actions[bot]
2025-01-21 16:03:59 +00:00
Author: https://github.com/awesomekling
Commit: 34a8f51eb8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3333
Reviewed-by: https://github.com/trflynn89
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue