The C++ looks messed up. I have yet to come across a keyboard that can type an arrow.
Some developers like ligature based fonts. They combine 2 characters into one glyph
Any keyboard can type “→” if you set up a compose key :)
It's just "->" - the ligature font just renders it as a unitary arrow
It's just a programming font ligature. If you copy and paste it you'll see the actual characters e.g.
(It's also modern C++ trailing return type.)