4
가변 템플릿 인수를 저장하는 방법은 무엇입니까?
나중에 사용하기 위해 어떻게 든 매개 변수 팩을 저장할 수 있습니까? template <typename... T> class Action { private: std::function<void(T...)> f; T... args; // <--- something like this public: Action(std::function<void(T...)> f, T... args) : f(f), args(args) {} void act(){ f(args); // <--- such that this will be possible } } 그런 …