[libcxx-commits] [libcxx] [libcxx] renames some template type parameters (PR #76540)

Will Hawkins via libcxx-commits libcxx-commits at lists.llvm.org
Fri Dec 29 12:33:21 PST 2023


================
@@ -45,6 +45,22 @@ other implementations (e.g. system headers), the test in
 ``libcxx/test/libcxx/system_reserved_names.gen.py`` contains the list of
 reserved names that can't be used.
 
+We use the following names to refer to various tempalate type parameters:
+
+* ``_Iter``, to refer to an iterator type. Some alterations are used if multiple
+  iterators with different categories appear in the same template:
+  * ``_InIter`` to disambiguate input iterators
+  * ``_ForwardIter`` to disambiguate input iterators
+  * ``_BiIter`` to disambiguate input iterators
+  * ``_RandomIter`` to disambiguate input iterators
+  * ``_ContgiuousIter`` to disambiguate input iterators
----------------
hawkinsw wrote:

```suggestion
  * ``_ContiguousIter`` to disambiguate input iterators
```

https://github.com/llvm/llvm-project/pull/76540


More information about the libcxx-commits mailing list