Это можно выполнить с помощью следующего кода: < /p>
Код: Выделить всё
#include
#include
// ...
const auto first_index = 1;
const auto last_index = 100;
std::string result;
for (auto index = first_index; index
Подробнее здесь: [url]https://stackoverflow.com/questions/79768016/appending-formatted-content-to-a-stdstring-without-creating-temporaries[/url]
Мобильная версия