[libcxx-commits] [libcxx] [libc++] Remove unnecessary std::vector accessors (PR #114423)
Peng Liu via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Oct 31 09:55:01 PDT 2024
winner245 wrote:
Maybe we need a more thorough removal as `_LIBCPP_COMPRESSED_PAIR` has been spread out in many files inlcuding `vector.h`, `deque`, `forward_list`, `list`, `__split_buffer`, etc. This also brings in other unnecessary accessors:
- `__size()` and `__alloc()` for 'deque'
- `__before_begin()` and `__alloc()` for `forward_list`
- `__sz()` and `__node_alloc()` for `list`
- `__end_cap()` and `__alloc()` for `__split_buffer`
This is just a short list in my mind. I am not sure what the best strategy is. But I believe it is worth cleaning up.
https://github.com/llvm/llvm-project/pull/114423
More information about the libcxx-commits
mailing list