AMDG John C. Femiani wrote:
I was just wondering why fusion (and mpl) don't include multi-maps or multi-sets. Are they unnecessary at compile time? Are they too trivial? Do they conceptually not work?
The easiest way to implement a multimap is in terms of an ordinary map.
In a fusion/mpl map the key is a type
and lookup uses overload resolution. This means that there
is necessarily a 1-1 correspondence between keys and values.
The obvious way to implement a multimap is to make the
value a container. Because of the function nature of
fusion/mpl this would be like
template