how can I declare iterator to use (*it).other_method and 'it = l->begin()'??