range-v3
range-v3 copied to clipboard
ranges::v3::view::interleave in docs but not in source code
As the title suggests, I'm able to find interleave
in the documentation, but in the source code, the only place I can find it is in the calendar example -- written as "user code". Is it it intended that interleave
is not part of the library? If so, I would kindly request that it be added, since this is indeed a useful utility view. On the other hand, maybe I'm missing something and there is a better alternative -- if so, I'd be grateful to be pointed in the right direction. I note that view::cycle
can accomplish a similar goal in some instances.
:+1: I came here to say there same thing
@ericniebler is there any reason it shouldn't be added?
It's tricky to make it perfectly general. The one in the calendar example makes some assumptions. I was trying to address the shortcomings when I got distracted, and that was over a year ago. Patches welcome.
It's tricky to make it perfectly general. The one in the calendar example makes some assumptions. I was trying to address the shortcomings when I got distracted, and that was over a year ago. Patches welcome.
why interleave
view needs store std::vector<range_value_t<Rngs>>
instead Rngs?