-
- Downloads
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.
Showing
- libstdc++-v3/include/bits/iterator_concepts.h 23 additions, 23 deletionslibstdc++-v3/include/bits/iterator_concepts.h
- libstdc++-v3/include/bits/ranges_base.h 50 additions, 50 deletionslibstdc++-v3/include/bits/ranges_base.h
- libstdc++-v3/include/std/concepts 7 additions, 6 deletionslibstdc++-v3/include/std/concepts
- libstdc++-v3/libsupc++/compare 18 additions, 13 deletionslibstdc++-v3/libsupc++/compare
Loading
Please register or sign in to comment