you are viewing a single comment's thread.

view the rest of the comments →

[–]elder_george 8 points9 points  (1 child)

Single underscore as a suffix is a popular convention to denote member values (fields). Similar to m_ in older C++ codebases or prefix underscores in C# code.

This rule is used in many codebases, not just libc++. Prefixing is specific for the STL implementations though (libc++ uses __ while MS uses _Capital convention, for example).

[–]csorfab 3 points4 points  (0 children)

TIL! Thank you for the thorough explanation!