Because it is in a class, it can start with an underscore followed by a lowercase letter, but it cannot start with a double underscore or an underscore followed by an uppercase letter. Please refer to here: http://stackoverflow.com/questions/228783/what-are- the-rules-about-using-an-underscore-in-a-c-identifier
Because it is in a class, it can start with an underscore followed by a lowercase letter, but it cannot start with a double underscore or an underscore followed by an uppercase letter. Please refer to here: http://stackoverflow.com/questions/228783/what-are- the-rules-about-using-an-underscore-in-a-c-identifier
As long as the defined member name complies with C++ specifications, it is OK.
The C++ standard has never stipulated that members outside functions cannot start with an underscore.
This may be useful to you https://www.zhihu.com/question/22419899
There is a way to write private attributes starting with an underscore.
Whether it can be written like this depends on the team's coding standards.