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

Function FOR_DISPATCH_3

library/cpp/iterator/ut/functools_ut.cpp:239–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237 };
238
239 FOR_DISPATCH_3(a, b, c, ts) {
240 TVector<std::tuple<i32, i32, i32>> e;
241 for (size_t j = 0; j < a.size() && j < b.size() && j < c.size(); ++j) {
242 e.push_back({a[j], b[j], c[j]});
243 }
244
245 TVector<std::tuple<i32, i32, i32>> f;
246 FOR_DISPATCH_3(ai, bi, ci, Zip(a, b, c)) {
247 f.push_back({ai, bi, ci});
248 }
249
250 EXPECT_EQ(e, f);
251 }
252 }
253
254 TEST(FuncTools, CompileZip) {

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected