Boost::Multi-index for nested lists
问题 How to implement Boost::Multi-index on a list of lists I have a hierarchical tree as follows: typedef std::list<struct obj> objList // the object list typedef std::list<objList> topLevelList // the list of top-level object lists struct obj { int Id; // globally unique Id std::string objType; std::string objAttributes; .... topLevelList childObjectlist; } At the top-level, I have a std::list of struct obj Then, each of these top-level obj can have any number of child objects, which are