title: How to initialize a member const vector of a class C++
body: <p>I have a const vector as member in a class. How can I initialize it?</p>
  
  <p>I know that for constant members the only way we can initialize them is via list initialization at class's constructor function. But exactly how to do it with a vector, I do not know.</p>
  
  <p>For example,</p>
  
  <pre><code>class ClassA
  {
  
  const std::vector&lt;int&gt; m_Vec;
  
  
  };
  </code></pre>
  
  <p>Thanks</p>