To: J3 J3/25-135r1 From: generics Subject: Edits for templates: TEMPLATE Date: 2025-June-25 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. Instantiation of a template creates entities based on the definitions in the template, and those with public identifiers are made accessible to the scoping unit in which the instantiation appears. Rtt10