std::stack element destruction order (stackoverflow.com)stack
7 points by Justin in stackoverflow.com · 9y ago · stack comments
Is there any guarantee regarding the destruction order of std::stack elements? I have a class that manages the lifetime of a set of services. Since there may be service interdependencies, the order of construction and destruction is important -- the services should be destroyed…