Skip to content

Commit d06b60f

Browse files
Add a reference to the name mangling description in the tutorial to the index. (GH-10138)
(cherry picked from commit c5eec44) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
1 parent 830f26d commit d06b60f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Doc/tutorial/classes.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,9 @@ be treated as a non-public part of the API (whether it is a function, a method
620620
or a data member). It should be considered an implementation detail and subject
621621
to change without notice.
622622

623+
.. index::
624+
pair: name; mangling
625+
623626
Since there is a valid use-case for class-private members (namely to avoid name
624627
clashes of names with names defined by subclasses), there is limited support for
625628
such a mechanism, called :dfn:`name mangling`. Any identifier of the form

0 commit comments

Comments
 (0)