What's the purpose of the extra std::list that boost::heap::d_ary_heap holds when configured for mutability?
问题 When configured for mutability, boost::heap::d_ary_heap uses a std::list in addition to the vector that holds the values of the heap nodes. I realize that the handles which are being provided for making the mutable_heap_interface work are in fact iterators of this list, but I'm wondering why such an expensive solution was chosen, and if there's a leaner way to achieve mutability with boost::heap::d_ary_heap . Mutability requires a way to find the index of a node in the heap vector, given the