是否提高报价make_zip_range? [英] Does boost offer make_zip_range?

查看:159
本文介绍了是否提高报价make_zip_range?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面:
http://stackoverflow.com/a/20703588/1593077
评论建议一个有用的结构,类似于 make_zip_iterator ,但范围:它需要范围的元组,并产生一个新的范围 - 他们开始()和end()迭代器适当压缩迭代器。

Here: http://stackoverflow.com/a/20703588/1593077 a comment suggests a useful 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?

推荐答案

Boost.Range将提供组合()功能 zip_iterator 的范围。

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

<一个href=\"http://www.boost.org/doc/libs/1_56_0/libs/range/doc/html/range/reference/utilities/combine.html\" rel=\"nofollow\">http://www.boost.org/doc/libs/1_56_0/libs/range/doc/html/range/reference/utilities/combine.html

这篇关于是否提高报价make_zip_range?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆