Reputation: 64276
here is my multi_index code:
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;
Now I want to iterate through result of 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");
But how to get another/end iterator?
Upvotes: 0
Views: 1824
Reputation: 249153
Did you try this?
ByTypeIt end = mObjectsByTypeViewer.end();
Upvotes: 1