#ifndef PROCESS_H
#define PROCESS_H
-#define USE_UNORDERED_MAP 1
-//#undef USE_UNORDERED_MAP
-
#include <algorithm>
#include <atomic>
-#ifdef USE_UNORDERED_MAP
-# include <unordered_map>
-# define MAP_TEMPLATE std::unordered_map
-#else
-# include <map>
-# define MAP_TEMPLATE std::map
-#endif
+#include <unordered_map>
#include <vector>
-#include <msg/msg.h>
+#include <simgrid/msg.h>
#include <xbt/log.h>
#include "communicator.h"
#include "misc.h"
static std::atomic<int> convergence_counter;
- typedef MAP_TEMPLATE<msg_host_t, neighbor*> rev_neigh_type;
+ typedef std::unordered_map<msg_host_t, neighbor*> rev_neigh_type;
neigh_type neigh; // list of neighbors (do not alter
// after construction!)
rev_neigh_type rev_neigh; // map msg_host_t -> neighbor