title: A map of vectors using derived class
body: <pre><code>class Base
  {
  protected:
     int x;
  public:
     Base();
     ~Base();
     virtual void displayx(){
       cout &lt;&lt; x &lt;&lt; endl;
     }
  };
  
  class Derived:public Base
  {
  public:
     Derived();
     ~Derived();
     void displayx(){
       cout &lt;&lt; x &lt;&lt; endl;
     }
  };
  
  int main()
  {
  Base * tanuki;
  
  tanuki = new Derived;
  
  //Unsure about these final lines of code.
  std::map&lt; string, vector&lt;Base*&gt;&gt; myMap;
  
  myMap.insert(make_pair("raccoon",vector&lt;....*&gt;()));
  }
  </code></pre>
  
  <p>I want to be able to store the new instances of Derived within myMap.
  Then call the displayx() function with the specified identifier string from map.
  I've tried multiple things but I believe I've hit a wall. </p>
  
  <p>How am I supposed to insert the derived class 'Derived' of base class 'Base' into my map of vectors?</p>