Original Post
Hello, I am looking for an efficient c++ string-like object. As I don't know in advance how big my string will be, I need it to be autogrowable but *without reallocation*. It should also be fast when accessing at any position, inserting at the beginning (which would be rare) and inserting at the end (most of the case). I guess it would be made of linked blocks. A plus would be its ability to (also) return iovecs (to avoid useless copies). I thought ropes could be a nice candidate, but it looks a bit complex and I am not sure I can extract iovecs from its internal structure. Thanks you