[libc++][format][4/6] Improve formatted_size.
authorMark de Wever <koraq@xs4all.nl>
Sun, 26 Sep 2021 14:48:25 +0000 (16:48 +0200)
committerMark de Wever <koraq@xs4all.nl>
Sat, 9 Apr 2022 07:36:29 +0000 (09:36 +0200)
commitfb9a692be5dd20db62c705bb371977dc30fb407f
tree81659d161e47d5cfcf10c099758df4302bca82dd
parent889302292bf6607a6606a771bb2bf0ce919e80bc
[libc++][format][4/6] Improve formatted_size.

Use a specialized "buffer" to count the number of insertions instead of
using a `string` as storage type.

Depends on D110497.

Reviewed By: ldionne, #libc

Differential Revision: https://reviews.llvm.org/D110498
libcxx/include/__format/buffer.h
libcxx/include/format