MCPcopy Create free account
hub / github.com/catboost/catboost / Map

Function Map

library/cpp/iterator/functools.h:41–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 //! Usage: for (i32 x : Map([](i32 x) { return x * x; }, a)) {...}
40 template <typename TMapper, typename TContainerOrRef>
41 auto Map(TMapper&& mapper, TContainerOrRef&& container) {
42 return ::MakeMappedRange(std::forward<TContainerOrRef>(container), std::forward<TMapper>(mapper));
43 }
44
45 //! Usage: for (auto i : Map<int>(floats)) {...}
46 template <typename TMapResult, typename TContainerOrRef>

Callers 1

TESTFunction · 0.50

Calls 2

MakeMappedRangeFunction · 0.85
TMapResultClass · 0.85

Tested by

no test coverage detected