[libcxx-commits] [PATCH] D110495: [libc++][format][2/6] Adds a __output_iterator.

Victor Zverovich via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Nov 25 08:11:57 PST 2021


vitaut added inline comments.


================
Comment at: libcxx/include/__format/buffer.h:57-59
+        __flush_([](_CharT* __ptr, size_t __size, void* __o) {
+          static_cast<_Tp*>(__o)->flush(__ptr, __size);
+        }),
----------------
As discussed in D112361, it would be good to avoid extra buffering for the common case of appending to a contiguous container such as string or vector.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D110495



More information about the libcxx-commits mailing list