title: C++ accessing a value of vector<int> that is inside class
body: <p>I have the following class:</p>
  
  <pre><code>class clsUnitArrayIndexToUnitID : public CBaseStructure
  {
      private:
          std::vector&lt;int&gt; m_content;
          long m_size;
      protected:
          void ProcessTxtLine(string line);
      public:
          clsUnitArrayIndexToUnitID();
          std::vector&lt;int&gt;* Content;
          long Size();
  };
  </code></pre>
  
  <p>I would like to access the values from outside the class, for example like this:</p>
  
  <pre><code>int iUnitID = m_MyClass.Content()[12];
  </code></pre>
  
  <p>However, C++ tells me that I need to use a point-to function type. 
  I am not sure what exactely that means.</p>
  
  <p>Also, if somebody sees any flaw in my code, please tell me.</p>