1#ifndef _BBM_CONSTFOREACH_H_
2#define _BBM_CONSTFOREACH_H_
35 template<
typename F,
typename... T>
38 (f.template operator()<T>(), ...);
47 (f.template operator()<T>(), ...);
53 #define CONSTFOREACH(ITR_TYPE, TYPE_LIST, ...) if constexpr (sizeof...(TYPE_LIST) > 0) bbm::constforeach<TYPE_LIST...>( [&]<typename ITR_TYPE>() { __VA_ARGS__ } );
Concept to check if a lambda functions meets the required signature.
Definition: constforeach.h:36
Definition: aggregatebsdf.h:29
constexpr void constforeach(F &&f)
constforeach over all typenames in T.
Definition: constforeach.h:45