Parameters issue

Sir mujhe ye samaj nhi aa rha h ki we write return *f toh iska matlab h ki f m jo address h us address par jo value voh return kra rhe h aur iska type T h toh hum return type T& kyu likh rhe h

Sir mujhe ye samaj nhi aa rha h ki we write return *f toh iska matlab h ki f m jo address h us address par jo value voh return kra rhe h
yaha tak sahi bola
aur iska type T h ye galat hai
f ek pointer hai jo kisi memory address ko point kar raha hai aur vo f jis memory address ko point kar raha hai uske andar jo value hai vo T type hai, but memory address toh T& type ka hi hai
f points to the bucket
dekho, forget about it being a custom operator at all
simply think about a map
m.find() kya dega? ek value agar map hai toh uske iterator ka pointer, understand this carefully, uska iterator nhi dega, uske iterator ka pointer dega, ab uspe call krke, first ya second value lelo
ye bhi similar hi cheez hai