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

Function ForEachImpl

util/generic/algorithm.h:585–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583
584 template <class T, class TOp, size_t... Is>
585 constexpr void ForEachImpl(T&& t, TOp&& op, std::index_sequence<Is...>) {
586#if _LIBCPP_STD_VER >= 17
587 (..., op(std::get<Is>(std::forward<T>(t))));
588#else
589 ::ApplyToMany(std::forward<TOp>(op), std::get<Is>(std::forward<T>(t))...);
590#endif
591 }
592} // namespace NPrivate
593
594// check that TOp return true for all of element from tuple T

Callers 1

ForEachFunction · 0.85

Calls 1

ApplyToManyFunction · 0.85

Tested by

no test coverage detected