Skip to content

Improve documentation about private name mangling #120452

@picnixz

Description

@picnixz

Private mangling is quite common if you want to emulate a "private" interface without leaving the possibility of the interface being considered "protected" (in the C++/Java sense). I've seen a few constructions in the standard library that are using this so I think it should be clear (visually speaking) in the docs as well.

I tend to forget about the rule of "no transformation if name only consists of underscores" or "underscores stripped + 1 underscore", so I think it's good to highlight them.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions