does "i->first" not work?  neater than (*i).first, imo.