Modernes C++ programmieren

Okt 23, 2024

lst-0781-book.cpp

// https://godbolt.org/z/7E6cr8GE9 
map<string,string> data { {"Hans","Albers"}, {"Heinz","Ruehmann" }, };
cout <<= data;                         // Hans:Albers Heinz:Ruehmann
data.rbegin()->second = "Erhardt";     // Ziel überschreiben
cout <<= data;                         // Hans:Albers Heinz:Erhardt