Peng Liu
c7df10643b
Unify naming of internal pointer members in std::vector and std::__split_buffer ( #115517 )
...
Related to PR #114423 , this PR proposes to unify the naming of the
internal pointer members in `std::vector` and `std::__split_buffer` for
consistency and clarity.
Both `std::vector` and `std::__split_buffer` originally used a
`__compressed_pair<pointer, allocator_type>` member named `__end_cap_`
to store an internal capacity pointer and an allocator. However,
inconsistent naming changes have been made in both classes:
- `std::vector` now uses `__cap_` and `__alloc_` for its internal
pointer and allocator members.
- In contrast, `std::__split_buffer` retains the name `__end_cap_` for
the capacity pointer, along with `__alloc_`.
This inconsistency between the names `__cap_` and `__end_cap_` has
caused confusions (especially to myself when I was working on both
classes). I suggest unifying these names by renaming `__end_cap_` to
`__cap_` in `std::__split_buffer`.
2024-11-13 11:08:08 +01:00
..
2024-11-12 23:03:52 +01:00
2024-11-06 10:39:19 +01:00
2024-10-12 09:49:52 +02:00
2024-10-31 02:20:10 +01:00
2024-11-12 15:15:18 +01:00
2024-10-31 02:20:10 +01:00
2024-10-31 02:20:10 +01:00
2024-11-06 10:39:19 +01:00
2024-11-07 09:23:21 -05:00
2024-10-31 02:20:10 +01:00
2024-11-06 10:38:19 +01:00
2024-11-11 09:59:58 -05:00
2024-10-12 09:49:52 +02:00
2024-11-06 10:38:19 +01:00
2024-11-07 11:49:29 -05:00
2024-11-06 10:39:19 +01:00
2024-11-12 00:00:34 +01:00
2024-11-06 10:39:19 +01:00
2024-11-06 10:39:19 +01:00
2024-11-06 10:39:19 +01:00
2024-11-11 23:04:38 +08:00
2024-11-11 13:11:23 -05:00
2024-09-12 21:18:43 +02:00
2024-10-31 02:20:10 +01:00
2024-11-06 10:39:19 +01:00
2024-11-06 10:39:19 +01:00
2024-11-06 10:39:19 +01:00
2024-10-31 02:20:10 +01:00
2024-11-06 10:39:19 +01:00
2024-10-31 02:20:10 +01:00
2024-11-06 10:39:19 +01:00
2024-11-06 10:39:19 +01:00
2024-11-06 10:39:19 +01:00
2024-11-06 10:39:19 +01:00
2024-11-06 10:39:19 +01:00
2024-10-31 02:20:10 +01:00
2024-11-06 10:39:19 +01:00
2024-11-04 18:58:49 +01:00
2024-11-10 13:21:42 +01:00
2024-11-12 00:00:34 +01:00
2024-10-31 02:20:10 +01:00
2024-11-13 11:08:08 +01:00
2024-10-31 02:20:10 +01:00
2024-09-17 11:22:27 -04:00
2024-07-24 19:42:48 +02:00
2024-11-11 22:58:34 +01:00
2024-11-06 10:39:19 +01:00
2024-11-04 18:58:49 +01:00
2024-11-06 09:57:08 -05:00
2024-11-06 10:39:19 +01:00
2024-11-13 11:08:08 +01:00
2024-09-16 15:06:20 -04:00
2024-10-23 17:07:15 -04:00
2024-10-01 13:00:29 -04:00
2024-11-10 13:21:42 +01:00
2024-11-07 09:23:21 -05:00
2024-10-31 02:20:10 +01:00
2024-11-06 10:39:19 +01:00
2024-10-31 02:20:10 +01:00
2024-10-30 09:49:26 +08:00
2024-10-31 02:20:10 +01:00
2024-11-06 10:39:19 +01:00
2024-10-30 09:49:26 +08:00
2024-11-06 07:53:56 -05:00
2024-11-12 00:00:34 +01:00
2024-08-29 17:05:56 +02:00
2024-11-06 10:39:19 +01:00
2024-10-31 02:20:10 +01:00
2024-11-06 10:39:19 +01:00
2024-10-30 09:49:26 +08:00
2024-10-31 02:20:10 +01:00
2024-11-06 10:39:19 +01:00
2024-10-31 02:20:10 +01:00
2024-10-30 09:49:26 +08:00
2024-10-30 09:49:26 +08:00
2024-09-05 08:28:33 -04:00
2024-11-06 07:53:56 -05:00
2024-09-05 08:28:33 -04:00
2024-11-06 10:39:19 +01:00
2024-09-05 08:28:33 -04:00
2024-10-30 09:49:26 +08:00
2024-09-05 08:28:33 -04:00
2024-10-12 09:49:52 +02:00
2024-09-05 08:28:33 -04:00
2024-11-13 11:08:08 +01:00
2024-10-31 02:20:10 +01:00
2024-07-18 10:59:58 +02:00
2024-07-18 10:59:58 +02:00
2024-10-26 18:58:53 +01:00
2024-11-06 10:39:19 +01:00
2024-11-06 10:38:19 +01:00
2024-11-06 10:39:19 +01:00
2024-10-25 11:28:46 +02:00
2024-11-06 10:39:19 +01:00
2024-10-31 02:20:10 +01:00
2024-11-11 13:11:23 -05:00
2024-11-06 10:39:19 +01:00
2024-11-06 10:39:19 +01:00
2024-11-06 10:39:19 +01:00
2024-11-06 10:39:19 +01:00
2024-10-31 02:20:10 +01:00
2024-11-06 10:39:19 +01:00
2024-09-12 21:18:43 +02:00
2024-11-06 10:39:19 +01:00
2024-11-06 09:57:08 -05:00
2024-10-12 18:29:59 +01:00
2024-09-12 21:18:43 +02:00
2024-07-18 10:59:58 +02:00
2024-09-16 11:53:05 -04:00
2024-08-10 10:08:41 +02:00
2024-11-12 00:00:34 +01:00
2024-11-06 10:39:19 +01:00
2024-11-06 10:38:19 +01:00
2024-10-31 02:20:10 +01:00
2024-07-18 10:59:58 +02:00
2024-11-04 18:58:49 +01:00
2024-11-06 10:39:19 +01:00
2024-11-07 07:31:42 -06:00
2024-09-12 21:18:43 +02:00
2024-07-18 10:59:58 +02:00
2024-11-06 10:39:19 +01:00
2024-11-12 15:15:18 +01:00
2024-11-06 10:39:19 +01:00
2024-09-12 21:18:43 +02:00
2024-11-06 10:39:19 +01:00
2024-10-12 18:29:59 +01:00
2024-11-06 10:39:19 +01:00
2024-10-31 02:20:10 +01:00
2024-11-06 10:39:19 +01:00
2024-09-12 21:18:43 +02:00
2024-11-06 10:39:19 +01:00
2024-10-31 02:20:10 +01:00
2024-09-12 21:18:43 +02:00
2024-11-06 10:39:19 +01:00
2024-11-06 10:39:19 +01:00
2024-11-12 00:00:34 +01:00
2024-11-06 10:39:19 +01:00
2024-11-06 10:39:19 +01:00
2024-10-30 09:49:26 +08:00
2024-11-06 10:39:19 +01:00
2024-10-31 02:20:10 +01:00
2024-11-10 13:21:42 +01:00
2024-10-31 02:20:10 +01:00
2024-10-31 02:20:10 +01:00
2024-10-12 18:29:59 +01:00
2024-10-12 18:29:59 +01:00
2024-10-31 02:20:10 +01:00
2024-10-31 02:20:10 +01:00
2024-11-10 13:21:42 +01:00
2024-11-06 10:39:19 +01:00
2024-11-06 10:39:19 +01:00
2024-11-06 10:39:19 +01:00
2024-09-16 10:21:50 -04:00