1 #ifndef AMREX_CONSTEXPR_FOR_H_
2 #define AMREX_CONSTEXPR_FOR_H_
3 #include <AMReX_Config.H>
26 template<auto I, auto N,
class F>
30 if constexpr (I < N) {
31 f(std::integral_constant<decltype(I), I>());
32 constexpr_for<I+1, N>(
f);
#define AMREX_INLINE
Definition: AMReX_Extension.H:127
#define AMREX_GPU_HOST_DEVICE
Definition: AMReX_GpuQualifiers.H:20
static int f(amrex::Real t, N_Vector y_data, N_Vector y_rhs, void *user_data)
Definition: AMReX_SundialsIntegrator.H:44
Definition: AMReX_Amr.cpp:49
AMREX_GPU_HOST_DEVICE constexpr AMREX_INLINE void constexpr_for(F const &f)
Definition: AMReX_ConstexprFor.H:28