MCPcopy Create free account
hub / github.com/comaps/comaps / SaveForEachParams

Class SaveForEachParams

libs/coding/coding_tests/var_record_reader_test.cpp:20–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18namespace
19{
20struct SaveForEachParams
21{
22 explicit SaveForEachParams(vector<pair<uint64_t, string>> & data) : m_data(data) {}
23
24 void operator()(uint64_t pos, vector<uint8_t> && data) const
25 {
26 m_data.emplace_back(pos, string(data.begin(), data.end()));
27 }
28
29 vector<pair<uint64_t, string>> & m_data;
30};
31
32} // namespace
33

Callers 1

UNIT_TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

UNIT_TESTFunction · 0.68