It doesn't make a difference at all to the compiler. It's totally the preference of the developer.
The following are the same:
Player* player_;
Player *player_;
Player * player_;
There was an interesting comment I read once about the thought process of someone that types:
Player* player_;
vs that of someone that types:
Player *player_;
I can't find it now since this sort of stuff is impossible to google. The basic idea is that the developer who types Player* is thinking that player_
is a pointer to a Player object. The person who types it the other way is thinking that a Player object is contained in the dereferenced player_
variable. A subtle difference but ultimately the same thing.
One thing you might want to look out for is when creating multiple pointer variables in one line:
int *p, q; // p is int*, q is int
int* p, q; // not so obvious here, but p is int*, q is int
int *p, *q; // it's a lot more obvious with the * next to the variable