[iter] Allow passing rvalue iters to hb_fill()
This commit is contained in:
parent
6463ee02d6
commit
5fce8898e0
|
@ -922,7 +922,7 @@ HB_FUNCOBJ (hb_none);
|
||||||
template <typename C, typename V,
|
template <typename C, typename V,
|
||||||
hb_requires (hb_is_iterable (C))>
|
hb_requires (hb_is_iterable (C))>
|
||||||
inline void
|
inline void
|
||||||
hb_fill (C& c, const V &v)
|
hb_fill (C&& c, const V &v)
|
||||||
{
|
{
|
||||||
for (auto i = hb_iter (c); i; i++)
|
for (auto i = hb_iter (c); i; i++)
|
||||||
*i = v;
|
*i = v;
|
||||||
|
|
Loading…
Reference in New Issue