All pastes #951975 Raw Edit

Someone

public text v1 · immutable
#951975 ·published 2008-03-21 20:22 UTC
rendered paste body
bool Graph::hasVertex(const Vertex& v) const
{
	std::vector<Vertex>::const_iterator pos = vertexes.begin(), posEnd = vertexes.end();
	for ( ; pos != posEnd; ++pos) {
		if (*pos == v)
			return true;
	}
	return false;
}