13 #include <boost/container/flat_map.hpp>
15 namespace ActsExamples {
28 template <
typename value_t>
36 template <
typename value_t>
39 using InverseMultimap = boost::container::flat_multimap<value_t, Index>;
42 typename InverseMultimap::sequence_type unordered;
43 unordered.reserve(multimap.size());
50 InverseMultimap inverse;
51 #if BOOST_VERSION < 107800
52 for (
const auto&
i : unordered) {
56 inverse.insert(unordered.begin(), unordered.end());