I've searched around and not found anything - does C++ give any guarantee on the order that items in a std::vector will be deleted when calling vector::clear()?
I have a vector with some items which depend on other items in the vector, so need to ensure it is cleared LIFO. FIFO would be fine - I can reverse the vector before calling clear().