MCPcopy Create free account
hub / github.com/davisking/dlib / for_each_impl

Function for_each_impl

dlib/algs.h:896–903  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

894 {
895 template <class Tuple, class F, std::size_t... I>
896 constexpr void for_each_impl(Tuple&& t, F&& f, std::index_sequence<I...>)
897 {
898#ifdef __cpp_fold_expressions
899 (std::forward<F>(f)(std::get<I>(std::forward<Tuple>(t))),...);
900#else
901 (void)std::initializer_list<int>{(std::forward<F>(f)(std::get<I>(std::forward<Tuple>(t))),0)...};
902#endif
903 }
904 }
905
906 template <class Tuple, class F>

Callers 1

for_each_in_tupleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected