Skip to content

Commit

Permalink
Change std::set -> absl::btree_set.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 540312346
Change-Id: Idbff25154b6875b0243781e36c1af1d6ae32e1be
  • Loading branch information
DeepMind Technologies Ltd authored and lanctot committed Jun 22, 2023
1 parent be1c934 commit 3a695e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion open_spiel/games/mfg/dynamic_routing.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <utility>
#include <vector>

#include "open_spiel/abseil-cpp/absl/container/btree_set.h"
#include "open_spiel/abseil-cpp/absl/container/flat_hash_map.h"
#include "open_spiel/abseil-cpp/absl/memory/memory.h"
#include "open_spiel/abseil-cpp/absl/strings/numbers.h"
Expand Down Expand Up @@ -394,7 +395,7 @@ std::vector<std::string> MeanFieldRoutingGameState::DistributionSupport() {
dist.push_back(value);
}
}
std::set<std::string> dist_set(dist.begin(), dist.end());
absl::btree_set<std::string> dist_set(dist.begin(), dist.end());
SPIEL_CHECK_EQ(dist_set.size(), dist.size());
return dist;
}
Expand Down

0 comments on commit 3a695e0

Please sign in to comment.