Open Mick235711 opened 4 months ago
Currently, views::repeat_n is a range factory that cannot be piped into:
views::repeat_n
std::vector vec{1, 2, 3}; views::repeat_n(vec, 2); // [[1, 2, 3], [1, 2, 3]]
So this naturally raises the question: why isn't repeat_n an adaptor, such that vec | views::repeat_n(2) is also valid?
repeat_n
vec | views::repeat_n(2)
Currently,
views::repeat_n
is a range factory that cannot be piped into:So this naturally raises the question: why isn't
repeat_n
an adaptor, such thatvec | views::repeat_n(2)
is also valid?