mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibGC: Allow visiting vectors with inline capacity
This allows visiting e.g. Vector<Value, 1>.
This commit is contained in:
parent
87bffe7d22
commit
cceb4321fc
|
|
@ -107,8 +107,8 @@ public:
|
||||||
visit(value);
|
visit(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T, size_t inline_capacity>
|
||||||
void visit(Vector<T> const& vector)
|
void visit(Vector<T, inline_capacity> const& vector)
|
||||||
{
|
{
|
||||||
for (auto& value : vector)
|
for (auto& value : vector)
|
||||||
visit(value);
|
visit(value);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user