Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use std::fill instead of memset.
[simgrid.git] / src / mc / udpor_global.cpp
index bd38ee7..b381524 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2008-2021. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2008-2022. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -9,8 +9,7 @@
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_udpor_global, mc, "udpor_global");
 
-namespace simgrid {
-namespace mc {
+namespace simgrid::mc {
 
 EventSet EvtSetTools::makeUnion(const EventSet& s1, const EventSet& s2)
 {
@@ -22,7 +21,7 @@ EventSet EvtSetTools::makeUnion(const EventSet& s1, const EventSet& s2)
 
 void EvtSetTools::pushBack(EventSet& events, UnfoldingEvent* e)
 {
-  if (!EvtSetTools::contains(events, e))
+  if (not EvtSetTools::contains(events, e))
     events.push_back(e);
 }
 
@@ -31,5 +30,4 @@ bool EvtSetTools::contains(const EventSet& events, const UnfoldingEvent* e)
   return std::any_of(events.begin(), events.end(), [e](const UnfoldingEvent* evt) { return *evt == *e; });
 }
 
-} // namespace mc
-} // namespace simgrid
+} // namespace simgrid::mc