Does boost offer make_zip_range?

瘦欲@ 提交于 2019-12-19 10:08:36

问题


At this answer here on SO, there's a comment suggesting a useful C++ construct, similar to make_zip_iterator, but for ranges: It takes a tuple of ranges and produces a new range - whose begin() and end() iterators are the appropriate zip iterators.

Now, this should not be too difficult to implement, but I was wondering - Isn't already offered already by Boost somehow?


回答1:


Boost.Range is providing combine() function as zip_iterator's range.

http://www.boost.org/doc/libs/1_56_0/libs/range/doc/html/range/reference/utilities/combine.html



来源:https://stackoverflow.com/questions/26288520/does-boost-offer-make-zip-range

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!