MCPcopy Create free account
hub / github.com/boostorg/parser / tuple_get

Function tuple_get

include/boost/parser/tuple.hpp:142–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 /** A tuple accessor that returns a reference to the `I`-th element. */
141 template<typename T, T I, typename... Args>
142 constexpr decltype(auto)
143 tuple_get(tuple<Args...> const & t, integral_constant<T, I>)
144 {
145#if BOOST_PARSER_USE_STD_TUPLE
146 return std::get<I>(t);
147#else
148 return hana::at_c<I>(t);
149#endif
150 }
151
152 /** A tuple accessor that returns a reference to the `I`-th element. */
153 template<typename T, T I, typename... Args>

Callers 1

getFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected