To: J3 J3/25-135 From: generics Subject: Edits for templates: TEMPLATE Date: 2025-May-19 References: 25-109r2, 24-125r5, 24-126r4, 24-127r4 Introduction: ============= This is the 1st of 6 papers that provide edits for the approved syntax for templates: 1. Templates 2. Deferred arguments 3. Instantiate 4. Requirements 5. Consistency constraints 6. Miscellanous edits Note that the clause numbering is merely suggestive. The overall ordering of template subclauses will change in future papers. For example, the final order is likely to start with the TEMPLATE construct introduced in the 3rd paper. Section 1: ========== * Insert the following text as a new clause. tt Type-safe generic programming with templates tt.1 The TEMPLATE construct tt.1.1 Syntax for the TEMPLATE construct A template contains declarations, specifications, and definitions that are parameterized by deferred arguments. Public identifiers of a template are made accessible to other scoping units by instantiation of the template. The accessible identifiers refer to specific instances of the entities created by the instantiation. Rtt10