#pragma once #include #include namespace vcpkg::Util { template using FmapOut = decltype(std::declval()(std::declval()[0])); template> std::vector fmap(const Cont& xs, Func&& f) { using O = decltype(f(xs[0])); std::vector ret; ret.reserve(xs.size()); for (auto&& x : xs) ret.push_back(f(x)); return ret; } }