[libcxx-commits] [libcxx] [libc++] added benchmarks for `string::append()` (PR #213990)

Pavel Novikov via libcxx-commits libcxx-commits at lists.llvm.org
Fri Aug 7 01:31:12 PDT 2026


================
@@ -43,6 +43,25 @@ void bench(std::string name, Func func, Mod modifier = {}) {
 #endif
 }
 
+template <typename Iterator>
+struct unoptimizable_forward_iterator : Iterator {
----------------
toughengineer wrote:

I followed what @ldionne suggested here https://github.com/llvm/llvm-project/pull/210078#discussion_r3624053050.
It's the minimal amount of code to do the job.
When e.g. the need to use it with raw pointers arises it should be refactored.

https://github.com/llvm/llvm-project/pull/213990


More information about the libcxx-commits mailing list