class, be they template generics, template specializations or not
templates. TYPE must be a class type (not a template generic).
- The new_friend call cannot introduce a declaration; even if the
+ The add_friend call cannot introduce a declaration; even if the
friend is first declared as a friend in the source code, the
declaration belongs in the enclosing namespace, so it must be
introduced in that namespace, and the resulting declaration can
In order to simplify such friend declarations, and to enable
incremental friend declarations as template specializations are
- introduced, new_friend can be called after the befriending class is
+ introduced, add_friend can be called after the befriending class is
fully defined, passing it a non-NULL TYPE argument naming the
befriending class type. */
GCC_CP_SYMBOL_FUNCTION or GCC_CP_SYMBOL_CLASS, that, when the scope
is a template parameter list, declares a template function or a
template class with the then-closed parameter list. The scope in
- which the new declaration is to be introduced by new_decl must be
- entered before calling start_new_template_decl, and new_decl
- returns to that scope, from the template parameter list scope,
- before introducing the declaration. */
+ which the new declaration is to be introduced by build_decl must be
+ entered before calling start_template_decl, and build_decl returns
+ to that scope, from the template parameter list scope, before
+ introducing the declaration. */
GCC_METHOD0 (int /* bool */, start_template_decl)
gcc_type, /* Argument ENCLOSING_TYPE. */
const char *) /* Argument ID. */
-/* Build a template-dependent template type id (e.g., T<A>).
+/* Build a template-dependent type template-id (e.g., T<A>).
TEMPLATE_DECL should be a template template parameter (e.g., the T
in template <template <[...]> class T = X>), and TARGS should
specify the template arguments (e.g. <A>). */