mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibGC: Add some deduction guides for GC::RootVector
This makes is easy to construct a RootVector from a vector or span of references to GC objects.
This commit is contained in:
parent
e0e09f71be
commit
d5892c7c7a
Notes:
github-actions[bot]
2025-05-29 01:48:43 +00:00
Author: https://github.com/awesomekling
Commit: d5892c7c7a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4899
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/shannonbooth
1 changed files with 9 additions and 0 deletions
|
@ -96,4 +96,13 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
RootVector(Heap&, ReadonlySpan<T> const&) -> RootVector<T>;
|
||||
|
||||
template<typename T>
|
||||
RootVector(Heap&, Span<T> const&) -> RootVector<T>;
|
||||
|
||||
template<typename T>
|
||||
RootVector(Heap&, Vector<T> const&) -> RootVector<T>;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue