Is there a linked hash set in C++?
问题 Java has a LinkedHashSet, which is a set with a predictable iteration order. What is the closest available data structure in C++? Currently I'm duplicating my data by using both a set and a vector. I insert my data into the set. If the data inserted successfully (meaning data was not already present in the set), then I push_back into the vector. When I iterate through the data, I use the vector. 回答1: If you can use it, then a Boost.MultiIndex with sequenced and hashed_unique indexes is the