mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01: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
|
|
@ -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…
Reference in New Issue
Block a user