From a6ae00e93d78daebd256e02f72c11ac78b87be6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Delfino?= Date: Wed, 7 Nov 2018 14:59:45 -0300 Subject: [PATCH] Add a reference to the name mangling description in the tutorial to the index. (GH-10138) (cherry picked from commit c5eec4426d9144b2255500217d0e3ff9463d2770) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Andrés Delfino --- Doc/tutorial/classes.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst index 487d535e169bfd..914da426df3616 100644 --- a/Doc/tutorial/classes.rst +++ b/Doc/tutorial/classes.rst @@ -672,6 +672,9 @@ be treated as a non-public part of the API (whether it is a function, a method or a data member). It should be considered an implementation detail and subject to change without notice. +.. index:: + pair: name; mangling + Since there is a valid use-case for class-private members (namely to avoid name clashes of names with names defined by subclasses), there is limited support for such a mechanism, called :dfn:`name mangling`. Any identifier of the form