title: Trying to create a vector of inner classes with same outer class object
body: <p>Can't we create an inner class vector as a member of outer class and have a single object of the outer class to push many instances of inner class objects into that vector?.</p>
  
  <pre><code>class Outer{
      class Inner{
      };
  vector&lt;Inner&gt; innerList;
  };
  </code></pre>
  
  <p>Now my requirement is to create a single object for <code>Outer</code> and I want to push many <code>Inner</code> objects into the vector <code>innerList</code>. My problem here is an <code>Inner</code> class object can be created only when <code>Outer</code> class is created. So whenever i want to create an <code>Inner</code> class object there will be an <code>Outer</code> class object associated with it. But I want a single <code>Outer</code> class object common for a set of <code>Inner</code> objects. Any ideas how to achieve that? </p>