Esoteric C++ operators

前端 未结 6 481
渐次进展
渐次进展 2020-12-28 08:37

What is the purpose of the following esoteric C++ operators?

Pointer to member

::*

Bind pointer to member by pointer



        
6条回答
  •  眼角桃花
    2020-12-28 09:15

    An oversimplified answer - these operators allow to call member functions as 'regular' functions (at least it looks the same from the end user's perspective) . Real world example - they are used a lot in a various callback implementations.

提交回复
热议问题