[libcxx-commits] [libcxx] [libc++][ranges] LWG4121: `ranges::to` constructs associative containers via `c.emplace(c.end(), *it)` (PR #220481)

Hristo Hristov via libcxx-commits libcxx-commits at lists.llvm.org
Tue Sep 1 23:47:54 PDT 2026


================

----------------
Zingam wrote:

```suggestion
  private:
  constexpr int* insert_impl(int* where, int val) {
    assert(size() + 1 <= Capacity);
```
Nit. AFAIK: `__` this type of name uglification is reserved for the library internals. IMO. You should not be used in custom types. If you need it truly private, make the struct a class.

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


More information about the libcxx-commits mailing list