Tag: template-meta-programming
-
C++20 – how can I constrain template parameter pack arguments to a “chain” sequence e.g. F, F, F?
7 Suppose I have two classes: template <typename X, typename Y> class Functor {}; template <typename Start, typename End, typename … Functors> class Template {}; Template has the constraints: All Functors must be type Functor All Functor must be in a chain sequence, such that the first Functor must have Start as its first argument…
-
c++20 – how to constrain template parameter pack arguments to a “chain” sequence e.g. F, F, F?
6 Supposing I have two classes: template <typename X, typename Y> class Functor {}; template <typename Start, typename End, typename … Functors> class Template {}; Template has the constraints: All Functors must be type Functor All Functor must be in a chain sequence, such that the first Functor must have Start as its first argument…