title: Vector as a class member
body: <p>Hello I have this question:
  I would like to have a vector as class member. This is perhaps my question
  easier for you and I apologize for that.</p>
  
  <ul>
  <li>how should I declare the vector? And is this correct? <code>std::vector&lt;int&gt; *myVector;</code> or <code>std::vector&lt;int&gt; myVector</code> ? </li>
  <li>how should I handle this vector in dealloc?</li>
  <li>How can I initialize the array into a if?</li>
  </ul>
  
  <p>Is this correct? </p>
  
  <pre><code>if(myCondition)
  {
     if(!myVector) //is this correct?
         myVector = new std::vector&lt;int&gt;(); //is this correct? on this i have a error
  }
  </code></pre>