[英]describe boost multi_index iterator type by its index tag
Using boost multi-index, I happen to have the following type for the iterator: 使用boost多索引,我碰巧具有以下类型的迭代器:
multi_index_set::nth_index<2>::type::iterator
I'd like go get rid of the nth_index<2>
part of the type and refer to it via its index tag: 我想摆脱该类型的
nth_index<2>
部分,并通过其index标记进行引用:
multi_index_set::tag_index<price_index>::type::iterator //tag_index is the functionality i'd like to have
Does this exist? 是否存在?
如果price_index
是标记,则可以像这样引用相关的索引迭代器:
multi_index_set::index<price_index>::type::iterator
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.