Homework/HW05/HashTable.cc
bool HashTable::insert(WordCounter &wordc, int position)
{
    if (position >=0) 
    {
        //if (!isValid(position))
        //    increase(position);
        storage[position].push_back(wordc);
        numObjects++;
        return true;
    }
    else
        return false;
}
// This private function inserts an object in the table when we
// already know what position we want it to be inserted at. It is
// declared as private because the user should not be able to call
// it. It is designed to be called internally by the public insertion
// function after getting the position from the hashing table.
This private function inserts an object in the table when we
already know what position we want it to be inserted at. It is
declared as private because the user should not be able to call
it. It is designed to be called internally by the public insertion
function after getting the position from the hashing table.
This private function inserts an object in the table when we already know what position we want it to be inserted at . It is declared as private because the user should not be able to call it . It is designed to be called internally by the public insertion function after getting the position from the hashing table .
bool HashTable::insert(WordCounter &wordc, int position)
{
    if (position >=0) 
    {
        storage[position].push_back(wordc);
        numObjects++;
        return true;
    }
    else
        return false;
}
bool HashTable :: insert ( WordCounter & wordc , int position ) { if ( position >= 0 ) { storage [ position ] . push_back ( wordc ) ; numObjects ++ ; return true ; } else return false ; }
This private function inserts an object in the table when we
already know what position we want it to be inserted at.
This private function inserts an object in the table when we already know what position we want it to be inserted at .
//if (!isValid(position)) //    increase(position);