MCPcopy Create free account
hub / github.com/changkun/modern-cpp-tutorial / tuple_index

Function tuple_index

code/4/4.3.cpp:36–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35template <typename... T>
36boost::variant<T...> tuple_index(size_t i, const std::tuple<T...>& tpl) {
37 return _tuple_index<0>(i, tpl);
38}
39
40template <typename T>
41auto tuple_len(T &tpl) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected