Trailing underscores for member variables in C++

前端 未结 7 468
后悔当初
后悔当初 2020-12-13 03:46

I\'ve seen people use a trailing underscore for member variables in classes, for instance in the renowned C++ FAQ Lite.

I think that it\'s purpose is not to mark var

7条回答
  •  情话喂你
    2020-12-13 04:32

    As far as I remember, it's not Microsoft that pushed the trailing underscore code style for members.

    I have read that Stroustrup is pro the trailing underscore.

提交回复
热议问题