1 /* Copyright (c) 2015. The SimGrid Team.
2 * All rights reserved. */
4 #ifndef SIMGRID_UTIL_HTPP
5 #define SIMGRID_UTIL_HTPP
12 /** Find a pointer to a value stores in a map (or nullptr) */
13 template<typename C, typename K>
15 typename C::mapped_type* find_map_ptr(C& c, K const& k)
17 typename C::iterator i = c.find(k);
24 template<typename C, typename K>
26 typename C::mapped_type const* find_map_ptr(C const& c, K const& k)
28 typename C::const_iterator i = c.find(k);