XBT_LOG_NEW_DEFAULT_SUBCATEGORY (instr_paje_containers, instr, "Paje tracing event system (containers)");
-namespace simgrid {
-namespace instr {
+namespace simgrid::instr {
Container* Container::root_container_ = nullptr; /* the root container */
std::map<std::string, Container*, std::less<>> Container::all_containers_; /* all created containers indexed by name */
{
XBT_DEBUG("destroy container %s", get_cname());
// Begin with destroying my own children
- for (auto [_, child] : children_)
+ for (auto const& [_, child] : children_)
delete child;
// remove me from the all_containers_ data structure
on_creation(*this);
}
-} // namespace instr
-} // namespace simgrid
+} // namespace simgrid::instr