title: Initializing class member (vector) in constructor via initialization list
body: <p>The C++11 standard gives an opportunity to initialize a vector with an initialization list like this. </p>
  
  <pre><code>vector &lt;int&gt; a {3, 5, 6, 2};
  </code></pre>
  
  <p>I am just wondering if it is possible to initialize a vector which is a member of class in a constructor via initialization list. </p>
  
  <p>I looked for such a thing but I did not find it on the Internet or here on Stack Overflow, so I thought that I should ask for it.  I hope that not only I, but also others will find it useful. </p>
  
  <p><strong>I do not want</strong> to make vector a <strong>static member</strong> of a class. </p>
  
  <p>The class should look like this:</p>
  
  <pre><code>class Foo
  {
      public:
          vector &lt;int&gt; myvector;
          //Here should be a constructor 
  };
  </code></pre>
  
  <p>It could be used like this:</p>
  
  <pre><code>Foo aa{1, 2, 3, 6, 1}; // it should initialize a vector 
  </code></pre>