Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
}
35
template <typename... T>
36
boost::variant<T...> tuple_index(size_t i, const std::tuple<T...>& tpl) {
37
return _tuple_index<0>(i, tpl);
38
}
39
40
template <typename T>
41
auto tuple_len(T &tpl) {
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected