Код: Выделить всё
#include
#include
int main() {
std::string_view sv = std::string("Hello") + " World";
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79901915/the-ephemeral-view-performance-over-safety-in-stdstring-view-ownership[/url]
Мобильная версия