[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
Sun Oct 24 09:46:02 PDT 2021


vitaut added a comment.

In D110495#3082114 <https://reviews.llvm.org/D110495#3082114>, @Mordante wrote:

> I've created a proof-of-concept here with benchmark results D112361 <https://reviews.llvm.org/D112361>.
> That revision is just to show what I did. It's intended to be a basis for the changes, it *is not* to be used as-is.

I think D112361 <https://reviews.llvm.org/D112361> is a step in the right direction. You can do even better and make it represent a contiguous (not necessarily fixed-size) buffer with type-erased reallocation/flush. Then it can be used to write to contiguous containers like vector and string which is a common case directly avoiding copies. This is basically what {fmt} does.


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