|
|
|
|
|
by archangel_one
4671 days ago
|
|
Yes, I think the semantics of c_str() and data() effectively require that it is stored contiguously. Although it is still possible to make it faster by overallocating in the same way as std::vector, but at the cost of more memory use. |
|