title: A vector of lists
body: <p>I am trying to implement a chained hashtable for the first time . I thought of creating a vector of lists . So I declared a vector of list as private . </p>
  
  <pre><code>class HashTable{
  public:
      HashTable( int ) ;
      void add( int k ) ;
      int remove( int k ) ;
      int find( int k ) ;
  private:
      vector&lt; list &gt; t ;
      int n ; 
      int hash( int ) ; 
  };
  </code></pre>
  
  <p>It is showing the following error :</p>
  
  <p>\HashTable.cpp  [Error] type/value mismatch at argument 1 in template parameter list for 'template class std::vector'</p>
  
  <p>Basically my question is List a type , so if we can declare vector of int so why cant vector of list be declared ?</p>