X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/f581799445893c1b953c365fbfb025e3dbcc775a..4d5ec9803b74d0f3e9c002a92a748bd08b6640ac:/process.h diff --git a/process.h b/process.h index 55ee792..f01c3c6 100644 --- a/process.h +++ b/process.h @@ -1,18 +1,9 @@ #ifndef PROCESS_H #define PROCESS_H -#define USE_UNORDERED_MAP 1 -//#undef USE_UNORDERED_MAP - #include #include -#ifdef USE_UNORDERED_MAP -# include -# define MAP_TEMPLATE std::unordered_map -#else -# include -# define MAP_TEMPLATE std::map -#endif +#include #include #include #include @@ -102,7 +93,7 @@ private: static std::atomic convergence_counter; - typedef MAP_TEMPLATE rev_neigh_type; + typedef std::unordered_map rev_neigh_type; neigh_type neigh; // list of neighbors (do not alter // after construction!) rev_neigh_type rev_neigh; // map msg_host_t -> neighbor