boost :: mpl :: vector-到达类型的基本偏移量

boost :: mpl :: vector-到达类型的基本偏移量,第1张

boost :: mpl :: vector-到达类型的基本偏移量

如果您正在寻找一种indexOf功能,我想Boost.MPL文档中涉及的示例

find
将达到目的

typedef vector<char,int,unsigned,long,unsigned long> types;typedef find<types,unsigned>::type iter;BOOST_MPL_ASSERT(( is_same< deref<iter>::type, unsigned > ));BOOST_MPL_ASSERT_RELATION( iter::pos::value, ==, 2 );


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5666625.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-16
下一篇 2022-12-16

发表评论

登录后才能评论

评论列表(0条)

保存