llvm-project
2c1decb7 - [libc++] Don't instantiate __split_buffer with an allocator reference (#171651)

Commit
3 days ago
[libc++] Don't instantiate __split_buffer with an allocator reference (#171651) Allocators should be extremely cheap, if not free, to copy. Furthermore, we have requirements on allocator types that copies must compare equal, and that move and copy must be the same. Hence, taking an allocator by reference should not provide benefits beyond making a copy of it. However, taking the allocator by reference leads to complexity in __split_buffer, which can be removed if we stop using that pattern.
Author
Parents
Loading