mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 09:12:13 -05: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: https://github.com/LadybirdBrowser/ladybird/commit/34a8f51eb82 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…
Reference in a new issue