MultiValueMap.Builder

An efficient builder that can be used to construct a multivalued map with successive add calls, which is more efficient than doing so directly due to the builder's deferred sorting.

struct MultiValueMap(KeyType, ValueType, alias KeySort = (a, b) => a < b)
static
struct Builder {}

Members

Functions

add
Builder add(KeyType k, ValueType v)

Adds a key -> value pair to the builder's map.

build
MultiValueMap build()

Builds the multivalued map.