X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/54579c50b49e4c927fe573fd97a65967157ac65b..8adc09758d857a4964013fa30184c9eec770f2bf:/src/smpi/include/smpi_group.hpp diff --git a/src/smpi/include/smpi_group.hpp b/src/smpi/include/smpi_group.hpp index 4637dea46f..ca6ad345d8 100644 --- a/src/smpi/include/smpi_group.hpp +++ b/src/smpi/include/smpi_group.hpp @@ -16,7 +16,11 @@ namespace smpi{ class Group : public F2C{ private: int size_; - int *rank_to_index_map_; + /* This is actually a map from int to int. We could use + * std::map here, but looking up a value there costs O(log(n)). + * For a vector, this costs O(1). We hence go with the vector. + */ + std::vector rank_to_index_map_; std::unordered_map index_to_rank_map_; int refcount_; public: