MCPcopy Create free account
hub / github.com/SqliteModernCpp/sqlite_modern_cpp / tbl_functor

Class tbl_functor

tests/functors.cc:10–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8using namespace std;
9
10struct tbl_functor {
11 explicit tbl_functor(vector<pair<int, string> > &vec_) : vec(vec_) { }
12
13 void operator() ( int id, string name) {
14 vec.push_back(make_pair(id, move(name)));
15 }
16 vector<pair<int,string> > &vec;
17};
18
19int main() {
20

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected