这是我的 multi_index 代码:
struct tag_type {};
typedef boost::multi_index_container<ObjectStorage,
bmi::indexed_by<
// Type
bmi::ordered_non_unique<
bmi::tag<tag_type>,
bmi::const_mem_fun<ObjectStorage, std::string, &ObjectStorage::getType>
>
>
> ObjectWrapperSet;
现在我想遍历find
.
ObjectWrapperSet::index<tag_type>::type &mObjectsByTypeViewer =
mObjectsSet.get<tag_type>()
typedef ObjectWrapperSet::index<tag_type>::type::const_iterator ByTypeIt;
ByTypeIt it = mObjectsByTypeViewer.find("Some type");
但是如何获得另一个/结束迭代器?