some time when there are a lot of functions in a c++ file, one may get lost trying to figure out which funtion the current line belongs to. the problem is intensified when the function spans more than a couple screen fuls. and then there is an occasional C-s ( incremental search ) which will lead you to many matches making you forget where you were and confusing you about where you currently are.
for a long time now i wished where was way where emacs could tell me the current function i was in, turns out that emacs does have such a feature:
and then type in
to learn more about it.
to turn on globally just add the following in your .emacs