MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / transform

Function transform

source/core/StarAlgorithm.hpp:302–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300
301template <typename OutContainer, typename InContainer, typename Function>
302OutContainer transform(InContainer&& container, Function&& function) {
303 OutContainer res;
304 transformInto(res, std::forward<InContainer>(container), std::forward<Function>(function));
305 return res;
306}
307
308template <typename OutputContainer, typename Function, typename Container1, typename Container2>
309OutputContainer zipWith(Function&& function, Container1 const& cont1, Container2 const& cont2) {

Callers

nothing calls this directly

Calls 1

transformIntoFunction · 0.85

Tested by

no test coverage detected