Skip to content

Commit

Permalink
map / setのerase : サンプルコード中で未定義動作をしていたのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
faithandbrave committed Jun 22, 2023
1 parent 6eaa82d commit a6c9e22
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 16 deletions.
4 changes: 0 additions & 4 deletions reference/map/map/erase.md
Expand Up @@ -99,9 +99,6 @@ int main()
m.erase(1);
std::cout << m.size() << std::endl;

m.erase(5);
std::cout << m.size() << std::endl;

m.erase(m.begin(), m.end());
std::cout << m.size() << std::endl;

Expand All @@ -118,7 +115,6 @@ int main()
```
3
2
2
0
```

Expand Down
4 changes: 0 additions & 4 deletions reference/map/multimap/erase.md
Expand Up @@ -99,9 +99,6 @@ int main()
m.erase(1);
std::cout << m.size() << std::endl;

m.erase(5);
std::cout << m.size() << std::endl;

m.erase(m.begin(), m.end());
std::cout << m.size() << std::endl;

Expand All @@ -118,7 +115,6 @@ int main()
```
3
2
2
0
```

Expand Down
4 changes: 0 additions & 4 deletions reference/set/multiset/erase.md
Expand Up @@ -99,9 +99,6 @@ int main()
c.erase(10);
std::cout << c.size() << std::endl;

c.erase(5);
std::cout << c.size() << std::endl;

c.erase(c.begin(), c.end());
std::cout << c.size() << std::endl;
}
Expand All @@ -116,7 +113,6 @@ int main()
```
3
1
1
0
```

Expand Down
4 changes: 0 additions & 4 deletions reference/set/set/erase.md
Expand Up @@ -99,9 +99,6 @@ int main()
c.erase(10);
std::cout << c.size() << std::endl;

c.erase(5);
std::cout << c.size() << std::endl;

c.erase(c.begin(), c.end());
std::cout << c.size() << std::endl;
}
Expand All @@ -116,7 +113,6 @@ int main()
```
3
2
2
0
```

Expand Down

0 comments on commit a6c9e22

Please sign in to comment.