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
The sed version used on macos doesn't like the I flag..
[simgrid.git]
/
src
/
simgrid
/
util.hpp
diff --git
a/src/simgrid/util.hpp
b/src/simgrid/util.hpp
index
944a895
..
03d81b8
100644
(file)
--- a/
src/simgrid/util.hpp
+++ b/
src/simgrid/util.hpp
@@
-1,17
+1,20
@@
/* Copyright (c) 2015. The SimGrid Team.
/* Copyright (c) 2015. The SimGrid Team.
- * All rights reserved. */
+ * 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. */
#ifndef SIMGRID_UTIL_HTPP
#define SIMGRID_UTIL_HTPP
#ifndef SIMGRID_UTIL_HTPP
#define SIMGRID_UTIL_HTPP
-#include <
algorithm
>
+#include <
xbt/base.h
>
namespace simgrid {
namespace util {
/** Find a pointer to a value stores in a map (or nullptr) */
template<typename C, typename K>
namespace simgrid {
namespace util {
/** Find a pointer to a value stores in a map (or nullptr) */
template<typename C, typename K>
-inline
+inline
XBT_PRIVATE
typename C::mapped_type* find_map_ptr(C& c, K const& k)
{
typename C::iterator i = c.find(k);
typename C::mapped_type* find_map_ptr(C& c, K const& k)
{
typename C::iterator i = c.find(k);
@@
-22,7
+25,7
@@
typename C::mapped_type* find_map_ptr(C& c, K const& k)
}
template<typename C, typename K>
}
template<typename C, typename K>
-inline
+inline
XBT_PRIVATE
typename C::mapped_type const* find_map_ptr(C const& c, K const& k)
{
typename C::const_iterator i = c.find(k);
typename C::mapped_type const* find_map_ptr(C const& c, K const& k)
{
typename C::const_iterator i = c.find(k);