just a quick one i have to an object to a list, this complies but is it correct??

Code:
void MediaCatDb::add(const Entry& entry)
{
	list<Entry>::iterator it;
	for (it = _entries.begin(); it != _entries.end(); ++it)
	{
      if (*it == entry)
      {
		  cout << "Duplicate Entry Present... Not added" << endl;
	  }
	  else
	  {
		  _entries.push_back(entry);
	  }
	}	
}