Como iterar std :: set?

Eu tenho este código:

std::set<unsigned long>::iterator it;
for (it = SERVER_IPS.begin(); it != SERVER_IPS.end(); ++it)
{
    u_long f = it; // error here
}

Não há->first valor. Como posso obter o valor?

questionAnswers(4)

yourAnswerToTheQuestion