mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 15:19:42 +00:00
LibGC: Allow visiting vectors with inline capacity
This allows visiting e.g. Vector<Value, 1>.
This commit is contained in:
parent
f07a3fe6da
commit
33623b8353
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue