diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-09-06 13:21:57 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-09-07 08:05:51 +0100 |
commit | faea9d92db9a339f5c2cf949e4890947287d7ef9 (patch) | |
tree | a3b817c0276157e27407e72b8546c67336d491f5 /contrib/gcc-changelog/git_email.py | |
parent | 9f41791eff82d5f41f16204cf092b7888b6c7a8d (diff) | |
download | gcc-faea9d92db9a339f5c2cf949e4890947287d7ef9.zip gcc-faea9d92db9a339f5c2cf949e4890947287d7ef9.tar.gz gcc-faea9d92db9a339f5c2cf949e4890947287d7ef9.tar.bz2 |
libstdc++: Rename C++20 Customization Point Objects
This makes the naming of the CPO types and namespaces simpler and more
consistent. With this change the string "cust" won't appear in
diagnostics related to these CPOs, which avoids confusion about what it
means (customization? customer?). Users don't really need to care that
these are called "customization point objects", so don't show them the
string "cust". Names like "__imove::_IterMove" are preferable to names
like "__cust_imove::_IMove" as the former is more obviously related to
the public API "ranges::iter_move".
Instead of a plethora of inline namespaces for all the different CPO
objects, define them all in an inline namespace called _Cpo (which isn't
shown to users anyway, unlike the types of those objects).
libstdc++-v3/ChangeLog:
* include/bits/iterator_concepts.h (ranges::__cust_imove):
Rename to ranges::__imove.
(_IMove): Rename to _IterMove.
(ranges::__cust_iswap): Rename to ranges::__iswap.
(ranges::__cust): Rename to ranges::_Cpo.
(ranges::__cust_access): Rename to ranges::__access.
* include/bits/ranges_base.h (ranges::__cust_access): Rename to
ranges::__access.
(ranges::__cust): Rename to ranges::_Cpo.
* include/std/concepts (ranges::__cust_swap): Rename to
ranges::__swap.
(ranges::__cust): Rename to ranges::_Cpo.
* libsupc++/compare (__cmp_cust): Rename to __compare.
(__cmp_algo): Rename to _Cpo.
Diffstat (limited to 'contrib/gcc-changelog/git_email.py')
0 files changed, 0 insertions, 0 deletions