title: How to store variadic template arguments?
body: <p>Is it possible to store a parameter pack somehow for a later use?</p>
  
  <pre><code>template &lt;typename... T&gt;
  class Action {
  private:        
      std::function&lt;void(T...)&gt; f;
      T... args;  // &lt;--- something like this
  public:
      Action(std::function&lt;void(T...)&gt; f, T... args) : f(f), args(args) {}
      void act(){
          f(args);  // &lt;--- such that this will be possible
      }
  }
  </code></pre>
  
  <p>Then later on:</p>
  
  <pre><code>void main(){
      Action&lt;int,int&gt; add([](int x, int y){std::cout &lt;&lt; (x+y);}, 3, 4);
  
      //...
  
      add.act();
  }
  </code></pre>