Sir doubt in hashtable

@8.49 line number 48 in for(auto s:m)

why is it only returning pair of firstname and roll number and value why isnt it returning pair of even lastname and how does internally it knows which pair to be returned and which not ?