Skip to content

Commit 6972631

Browse files
committed
some small improvements in flat_map and flat_set
1 parent 85e901d commit 6972631

File tree

12 files changed

+18
-8
lines changed

12 files changed

+18
-8
lines changed

reference/flat_map/flat_map/cbegin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const_iterator cbegin() const noexcept;
1818

1919
## 戻り値
2020
コンテナの先頭要素へのイテレータ。
21-
`const_iterator` はメンバ型である。このクラステンプレートにおいて、これらはランダムアクセスイテレータである
21+
`const_iterator` はメンバ型である。このクラステンプレートにおいて、この型はランダムアクセスイテレータである
2222

2323

2424
## 計算量

reference/flat_map/flat_map/cend.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const_iterator cend() const noexcept;
1515

1616
## 戻り値
1717
コンテナの末尾の次を参照するイテレータ。
18-
`const_iterator` はいずれもメンバ型である。このクラステンプレートにおいて、これらはランダムアクセスイテレータである
18+
`const_iterator` はメンバ型である。このクラステンプレートにおいて、この型はランダムアクセスイテレータである
1919

2020

2121
## 計算量

reference/flat_map/flat_map/erase.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ int main()
118118
}
119119
}
120120
```
121+
* erase[color ff0000]
122+
* fm.begin()[link begin.md]
123+
* fm.end()[link end.md]
121124

122125
#### 出力
123126
```

reference/flat_map/flat_map/swap.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ int main()
6363
print("fm2", fm2);
6464
}
6565
```
66+
* swap[color ff0000]
6667

6768
### 出力
6869
```

reference/flat_map/flat_multimap/cbegin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const_iterator cbegin() const noexcept;
1818

1919
## 戻り値
2020
コンテナの先頭要素へのイテレータ。
21-
`const_iterator` はメンバ型である。このクラステンプレートにおいて、これらはランダムアクセスイテレータである
21+
`const_iterator` はメンバ型である。このクラステンプレートにおいて、この型はランダムアクセスイテレータである
2222

2323

2424
## 計算量

reference/flat_map/flat_multimap/cend.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const_iterator cend() const noexcept;
1515

1616
## 戻り値
1717
コンテナの末尾の次を参照するイテレータ。
18-
`const_iterator` はいずれもメンバ型である。このクラステンプレートにおいて、これらはランダムアクセスイテレータである
18+
`const_iterator` はメンバ型である。このクラステンプレートにおいて、この型はランダムアクセスイテレータである
1919

2020

2121
## 計算量

reference/flat_map/flat_multimap/erase.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ int main()
118118
}
119119
}
120120
```
121+
* erase[color ff0000]
122+
* fm.begin()[link begin.md]
123+
* fm.end()[link end.md]
121124

122125
#### 出力
123126
```

reference/flat_map/flat_multimap/replace.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ int main()
4747
// 事前条件の確認
4848
assert(keys.size() == values.size());
4949
assert(std::is_sorted(keys.begin(), keys.end()));
50-
assert(std::adjacent_find(keys.begin(), keys.end()) == keys.end());
5150
5251
std::flat_multimap<std::string, int> fm;
5352
@@ -68,7 +67,6 @@ int main()
6867
* replace[color ff0000]
6968
* fm.size()[link size.md]
7069
* std::is_sorted[link /reference/algorithm/is_sorted.md]
71-
* std::adjacent_find[link /reference/algorithm/adjacent_find.md]
7270

7371
### 出力
7472
```

reference/flat_map/flat_multimap/swap.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ int main()
6363
print("fm2", fm2);
6464
}
6565
```
66+
* swap[color ff0000]
6667

6768
### 出力
6869
```

reference/flat_map/sorted_equivalent_t.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ int main()
4949

5050
### 出力
5151
```
52+
3 : a
53+
5 : d
54+
15 : e
5255
```
5356

5457
## バージョン

0 commit comments

Comments
 (0)