mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 14:06:10 +00:00
[libc++][NFC] Add a short description for __split_buffer
Reviewed By: Mordante, huixie90, #libc Spies: libcxx-commits Differential Revision: https://reviews.llvm.org/D132032
This commit is contained in:
parent
531dd3634d
commit
dea4386749
@ -34,6 +34,10 @@ _LIBCPP_PUSH_MACROS
|
||||
|
||||
_LIBCPP_BEGIN_NAMESPACE_STD
|
||||
|
||||
// __split_buffer allocates a contiguous chunk of memory and stores objects in the range [__begin_, __end_).
|
||||
// It has uninitialized memory in the ranges [__first_, __begin_) and [__end_, __end_cap_.first()). That allows
|
||||
// it to grow both in the front and back without having to move the data.
|
||||
|
||||
template <class _Tp, class _Allocator = allocator<_Tp> >
|
||||
struct __split_buffer
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user