MCPcopy Create free account
hub / github.com/cbeck88/visit_struct / test_visitor_two

Class test_visitor_two

test_visit_struct.cpp:103–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101using ppair = std::pair<const char * , const void *>;
102
103struct test_visitor_two {
104 std::vector<ppair> result;
105
106 template <typename T>
107 void operator()(const char * name, const T & t) {
108 result.emplace_back(ppair{name, static_cast<const void *>(&t)});
109 }
110};
111
112
113

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected