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

Function get

include/boost/parser/tuple.hpp:322–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320
321 template<typename T, typename U, U I>
322 constexpr decltype(auto) get(T && x, integral_constant<U, I> i)
323 {
324 using just_t = std::decay_t<T>;
325 if constexpr (detail::is_tuple<just_t>::value) {
326 return detail::tuple_get((T &&) x, i);
327 } else if constexpr (std::is_aggregate_v<just_t>) {
328 auto tup = detail::tie_aggregate(x);
329 return detail::tuple_get(tup, i);
330 } else {
331 static_assert(
332 sizeof(T) != sizeof(T),
333 "boost::parser::get() is only defined for boost::parser::tuple "
334 "and aggregate structs.");
335 }
336 }
337
338}}
339

Callers 15

operator()Method · 0.70
make_from_tuple_implFunction · 0.70
operator()Method · 0.70
call_implMethod · 0.70
operator()Method · 0.70
operator()Method · 0.70
make_temp_resultMethod · 0.70
callMethod · 0.70
call_implMethod · 0.70
tuple.hppFile · 0.70
tuple_to_aggregateFunction · 0.70
aggregate_to_tupleFunction · 0.70

Calls 2

tuple_getFunction · 0.85
tie_aggregateFunction · 0.85

Tested by

no test coverage detected