Skip to content

Commit 807ab69

Browse files
authored
Update 010_map_try_emplace.cpp
1 parent a596e0a commit 807ab69

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cpp_17/010_map_try_emplace.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ int main()
1111
m.try_emplace("a", "a"s);
1212
m.try_emplace("b", "abcd");
1313
m.try_emplace("c", 10, 'c');
14+
m.try_emplace("c", "Won't be inserted");
1415

1516
for (const auto &p : m) {
1617
std::cout << p.first << " => " << p.second << '\n';

0 commit comments

Comments
 (0)