folly::gen::groupBy

Groups all values by their selected key.

Synopsis

Declared in <folly/gen/Base.h>

template<
    class Selector = Identity,
    class GroupBy = /* implementation-defined */>
GroupBy
groupBy(Selector selector = Selector());

Return Value

An operator yielding groups of values sharing a key.

Parameters

NameDescription
selectorThe projection producing the grouping key.