[pool] Rewrite a loop as dagger

This commit is contained in:
Behdad Esfahbod 2022-11-18 20:25:05 -07:00
parent 3ff8abf272
commit 281b4705b4
1 changed files with 3 additions and 2 deletions

View File

@ -39,8 +39,9 @@ struct hb_pool_t
{
next = nullptr;
for (chunk_t *_ : chunks)
hb_free (_);
+ hb_iter (chunks)
| hb_apply (hb_free)
;
}
T* alloc ()