#include #include #include #include int main() { typedef int handler_t; //typedef boost::container::flat_multimap handlers_map_t; //typedef boost::container::flat_map handlers_map_t; //typedef std::multimap handlers_map_t; //typedef std::map handlers_map_t; handlers_map_t handlers; // this does not compile with flat_multimap, but does compile with flat_map, std::multimap and std::map const auto matching = handlers.equal_range(std::type_index(typeid(int))); return 0; }