[iter] Make hb_fill() take collection type, not iter
Starting to get the hang of when take which.
This commit is contained in:
parent
7b4eea853c
commit
aaddfaa57a
|
@ -60,10 +60,10 @@ struct some_array_t
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
template <typename I, typename V> inline void
|
template <typename C, typename V> inline void
|
||||||
hb_fill (hb_iter_t<I> &i, const V &v)
|
hb_fill (const C& c, const V &v)
|
||||||
{
|
{
|
||||||
for (; i; i++)
|
for (typename C::iter_t i (c); i; i++)
|
||||||
hb_assign (*i, v);
|
hb_assign (*i, v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue