best coding style for iterators
A fellow overflower said that this made his eyes bleed:

    for (std::vector<Agent*>::const_iterator iter = agents.begin(); iter != agents.end(); ++iter)
	{
		delete *iter;
	}

What's a neater way of writing it? I suppose I could typedef the iterator type, but in some classes that would mean a huge block of typedef's at the top which I think looks horrible.
best coding style for iterators
===

A fellow overflower said that this made his eyes bleed:

    for (std::vector<Agent*>::const_iterator iter = agents.begin(); iter != agents.end(); ++iter)
	{
		delete *iter;
	}

What's a neater way of writing it? I suppose I could typedef the iterator type, but in some classes that would mean a huge block of typedef's at the top which I think looks horrible.