folly::gen::minBy

Finds the value with the minimum selected key.

Synopsis

Declared in <folly/gen/Base.h>

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

Return Value

A sink yielding the value with the smallest selected key.

Parameters

NameDescription
selectorThe projection used to compare values.