MCPcopy Create free account
hub / github.com/BowenFu/matchit.cpp / drop

Function drop

develop/matchit/patterns.h:167–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165
166 template <std::size_t start, class Tuple>
167 constexpr decltype(auto) drop(Tuple &&t)
168 {
169 constexpr auto tupleSize = std::tuple_size_v<std::remove_reference_t<Tuple>>;
170 static_assert(start <= tupleSize);
171 return subtuple<start, tupleSize>(std::forward<Tuple>(t));
172 }
173
174 template <std::size_t len, class Tuple>
175 constexpr decltype(auto) take(Tuple &&t)

Callers 1

matchit.hFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected