[iter] Make hb_fill() take collection type, not iter

Starting to get the hang of when take which.
This commit is contained in:
Behdad Esfahbod 2018-12-21 16:04:38 -05:00
parent 7b4eea853c
commit aaddfaa57a
1 changed files with 3 additions and 3 deletions

View File

@ -60,10 +60,10 @@ struct some_array_t
};
template <typename I, typename V> inline void
hb_fill (hb_iter_t<I> &i, const V &v)
template <typename C, typename V> inline void
hb_fill (const C& c, const V &v)
{
for (; i; i++)
for (typename C::iter_t i (c); i; i++)
hb_assign (*i, v);
}