Category : apply

I am attempting to use concepts with a variadic template. My template class is below. The concept should say: "Each type T should have a member function Func that accepts an input of type FuncArgType." #pragma once #include <tuple> #include <concepts> #include <iostream> template<typename FuncArgType, typename… Ts> requires requires (FuncArgType func_arg, std::tuple<Ts…> args) { std::apply([&func_arg](auto&… ..

Read more