MCPcopy Create free account
hub / github.com/VcDevel/std-simd / for_constexpr

Function for_constexpr

tests/integer_operators.cpp:52–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50// for_constexpr {{{1
51template <typename T, T Begin, T End, T Stride = 1, typename F>
52void for_constexpr(F&& fun)
53{
54 if constexpr (Begin <= End) {
55 fun(std::integral_constant<T, Begin>());
56 if constexpr (Begin < End) {
57 for_constexpr<T, Begin + Stride, End, Stride>(std::forward<F>(fun));
58 }
59 }
60}
61
62TEST_TYPES(V, operators, all_test_types) //{{{1
63{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected