如何“连接”到服务器。 boost :: mpl :: vectors [英] How to "concatenate" boost::mpl::vectors

查看:108
本文介绍了如何“连接”到服务器。 boost :: mpl :: vectors的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须使用不同的向量

mpl::vector<Type1, Type2...>
mpl::vector<Type3, Type4...>

我想将它们串联成:

mpl::vector<Type1, Type2, Type3, Type4...>

这将允许我准备矢量模板,然后再使用它们。
我的问题有不同的解决方案,但是这种方法对我来说似乎最合适。

This would allow me to prepare vector templates and reuse them afterwards. There are different solutions to my problem, but this approach seems most appropriate to me.

谢谢...

推荐答案

libaray本机支持的功能boost :: mpl :: joint_view可能是一个更好的选择。
经过优化和延迟评估。

The libaray native supported function boost::mpl::joint_view is probably a better choice. It is optimized and lazy-evaluated.

http://www.boost.org/doc/libs/1_55_0/libs/mpl/doc/refmanual/joint-view.html

这篇关于如何“连接”到服务器。 boost :: mpl :: vectors的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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