In the following example is there a more efficient way to retrieve the unique keys of a non-unique index?
typedef multi_index_container<TaggedNodeEntry,indexed_by<hashed_non_unique<tag<name>,BOOST_MULTI_INDEX_MEMBER(TaggedNodeEntry, int, name)>,... >> TaggedNodes;int main() { ...boost::multi_index::index<TaggedNodes, name>::type::iterator ic0 = get<name>(taggedNodes).begin();
boost::multi_index::index<TaggedNodes, name>::type::iterator ic1 = get<name>(taggedNodes).end();while (ic0 != ic1) {std::cout << ic0->name << std::endl;ic0 = get<name>(taggedNodes).equal_range(ic0->name).second;}