mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +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);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void visit(Vector<T> const& vector)
|
||||
template<typename T, size_t inline_capacity>
|
||||
void visit(Vector<T, inline_capacity> const& vector)
|
||||
{
|
||||
for (auto& value : vector)
|
||||
visit(value);
|
||||
|
|
Loading…
Add table
Reference in a new issue