mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00: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
Notes:
github-actions[bot]
2025-04-11 16:12:46 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/cceb4321fce Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4311 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/shannonbooth ✅
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