A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added platform for ns3 wifi example
[simgrid.git]
/
src
/
simgrid
/
util.hpp
diff --git
a/src/simgrid/util.hpp
b/src/simgrid/util.hpp
index 195070742f74c5f1c6ee90b8059c48a1f90bf679..d022134997a9ffcdfcbabd548ce37be4cf36c831 100644
(file)
--- a/
src/simgrid/util.hpp
+++ b/
src/simgrid/util.hpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2015. The SimGrid Team.
+/* Copyright (c) 2015
-2020
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-7,8
+7,6
@@
#ifndef SIMGRID_UTIL_HTPP
#define SIMGRID_UTIL_HTPP
#ifndef SIMGRID_UTIL_HTPP
#define SIMGRID_UTIL_HTPP
-#include <algorithm>
-
#include <xbt/base.h>
namespace simgrid {
#include <xbt/base.h>
namespace simgrid {
@@
-19,7
+17,7
@@
template<typename C, typename K>
inline XBT_PRIVATE
typename C::mapped_type* find_map_ptr(C& c, K const& k)
{
inline XBT_PRIVATE
typename C::mapped_type* find_map_ptr(C& c, K const& k)
{
-
typename C::iterator
i = c.find(k);
+
auto
i = c.find(k);
if (i == c.end())
return nullptr;
else
if (i == c.end())
return nullptr;
else
@@
-37,7
+35,7
@@
typename C::mapped_type const* find_map_ptr(C const& c, K const& k)
return &i->second;
}
return &i->second;
}
-}
-}
+}
// namespace util
+}
// namespace simgrid
#endif
#endif