Difference between arrow and dot operator

in temp->children.count(ch) why use dot operator and where to use arrow operator

arrow is used when you have a reference to the object and you wish to access its instance variables. And . is used when you have the actual object and you wish to access its variables.

so in simple language we can say that whenever there is use of pointers we use arrow operator and here temp->children where children is unordered_map that is why after pointing to children we use dot count. is it correct??

Yes, correct.______________