Код: Выделить всё
reserveКод: Выделить всё
shrink_to_fitКод: Выделить всё
#include
#include
struct A {
A() {}
A(A&) { std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79591359/why-copying-of-vectors-elements-can-be-done-with-not-const-lvalue-argument[/url]
Мобильная версия