提交 aaddfaa5 编写于 作者: B Behdad Esfahbod

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

Starting to get the hang of when take which.
上级 7b4eea85
...@@ -60,10 +60,10 @@ struct some_array_t ...@@ -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);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册