title: STD container inheritance
body: <p>I want to declare class which depends on 'mode' field works with different type of standard containers. How I can do that?!</p>
  <pre><code>class Container {
  public:
      Container(int8_t initMode);
      void addPair(string name, int32_t number);
      int8_t mode;
  private:
      std::_Container_base _container;
  };
  
  Container::Container(int8_t m) {
      mode = m &gt;= 0 &amp;&amp; m &lt;= 2 ? m : 0;
      switch (mode) {
      case 0: 
          //_container should be Map;
          break;
      case 1:
          //_container should be Dictionary;
          break;
      case 2:
          //_container should be HashMap;
          break;
      }
  }
  </code></pre>