[libcxx-commits] [PATCH] D132032: [libc++][NFC] Add a short description for __split_buffer

Nikolas Klauser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Aug 18 07:16:27 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rGdea438674954: [libc++][NFC] Add a short description for __split_buffer (authored by philnik).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132032/new/

https://reviews.llvm.org/D132032

Files:
  libcxx/include/__split_buffer


Index: libcxx/include/__split_buffer
===================================================================
--- libcxx/include/__split_buffer
+++ libcxx/include/__split_buffer
@@ -34,6 +34,10 @@
 
 _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
 {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132032.453656.patch
Type: text/x-patch
Size: 610 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220818/2768ce94/attachment.bin>


More information about the libcxx-commits mailing list