[libcxx-commits] [PATCH] D110499: [libc++][format][5/6] Improve format_to_n.

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sun Sep 26 08:05:56 PDT 2021


Mordante created this revision.
Mordante added reviewers: ldionne, vitaut.
Mordante requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Use a specialized buffer wrapper to limit the number of insertions in the
buffer. After the limit has been reached the buffer only needs to count
the number of insertions to return the buffer size required to store the
entire output.

Depends on D110498 <https://reviews.llvm.org/D110498>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D110499

Files:
  libcxx/include/__format/buffer.h
  libcxx/include/format

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110499.375110.patch
Type: text/x-patch
Size: 5985 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210926/32b571eb/attachment-0001.bin>


More information about the libcxx-commits mailing list