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

Method ForEach

catboost/libs/helpers/array_subset.h:850–856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

848 // f is a visitor function that will be repeatedly called with (index, element) arguments
849 template <class F>
850 void ForEach(F&& f) {
851 SubsetIndexing->ForEach(
852 [src = this->Src, f = std::move(f)](TSize index, TSize srcIndex) {
853 f(index, (*src)[srcIndex]);
854 }
855 );
856 };
857
858 template <class F>
859 void ForEach(F&& f) const {

Callers 1

GetSubsetFunction · 0.45

Calls 2

moveFunction · 0.50
fFunction · 0.50

Tested by

no test coverage detected