Код: Выделить всё
void EditValue(const std::map& m) {
std::string& value = m.at("mykey"); // append("suffix"); //
Подробнее здесь: [url]https://stackoverflow.com/questions/78872660/is-there-a-way-in-c-to-pass-a-map-where-the-structure-is-immutable-but-the-val[/url]
Мобильная версия