Applies a function to each value, yielding the results.

Synopsis

Declared in <folly/gen/Base.h>

template<
    class Predicate,
    class Map = /* implementation-defined */>
Map
mapped(Predicate pred = Predicate());

Return Value

An operator yielding pred applied to each value.

Parameters

Name

Description

pred

The function applied to each value.

Created with MrDocs