jump to:all–mastodon–bluesky–lemmy–lobsters–dev–stack–wiki–rss–hn
wwebbit
view: | | |

Tech / Stack Overflow · hot matching “destruction”

1 shown · updated 4s ago · read only
  1. 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…
    filed under c++c++11stdstack