Код: Выделить всё
#include
#include
#include
void echo(std::string & input)
{
std::string_view input_v = input;
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79585138/is-it-safe-to-modify-stdstring-while-there-exists-stdstring-view-pointing-to[/url]
Мобильная версия