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

Method ReverseUseless

util/ysaveload.h:431–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429struct TTupleSerializer {
430 template <class F, class Tuple, size_t... Indices>
431 static inline void ReverseUseless(F&& f, Tuple&& t, std::index_sequence<Indices...>) {
432 ApplyToMany(
433 std::forward<F>(f),
434 // We need to do this trick because we don't want to break backward compatibility.
435 // Tuples are being packed in reverse order.
436 std::get<std::tuple_size<T>::value - Indices - 1>(std::forward<Tuple>(t))...);
437 }
438
439 static inline void Save(IOutputStream* stream, const T& t) {
440 ReverseUseless([&](const auto& v) { ::Save(stream, v); }, t,

Callers

nothing calls this directly

Calls 1

ApplyToManyFunction · 0.85

Tested by

no test coverage detected