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

Class mock_maker

test_fully_visitable.cpp:86–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84
85template <typename T>
86struct mock_maker {
87 template <typename is>
88 struct helper;
89
90 template <std::size_t ... Is>
91 struct helper<seq< Is...>> {
92 using type = mock_tuple_t<visit_struct::type_at<Is, T> ...>;
93 };
94
95 using type = typename helper<count<visit_struct::field_count<T>()>>::type;
96 static constexpr std::size_t size = sizeof(type);
97};
98
99// Final result
100

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected