Skip to content

Commit

Permalink
some small improvements in flat_map and flat_set
Browse files Browse the repository at this point in the history
  • Loading branch information
suomesta committed Feb 8, 2025
1 parent 85e901d commit 6972631
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion reference/flat_map/flat_map/cbegin.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const_iterator cbegin() const noexcept;

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


## 計算量
Expand Down
2 changes: 1 addition & 1 deletion reference/flat_map/flat_map/cend.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const_iterator cend() const noexcept;

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


## 計算量
Expand Down
3 changes: 3 additions & 0 deletions reference/flat_map/flat_map/erase.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ int main()
}
}
```
* erase[color ff0000]
* fm.begin()[link begin.md]
* fm.end()[link end.md]

#### 出力
```
Expand Down
1 change: 1 addition & 0 deletions reference/flat_map/flat_map/swap.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ int main()
print("fm2", fm2);
}
```
* swap[color ff0000]

### 出力
```
Expand Down
2 changes: 1 addition & 1 deletion reference/flat_map/flat_multimap/cbegin.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const_iterator cbegin() const noexcept;

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


## 計算量
Expand Down
2 changes: 1 addition & 1 deletion reference/flat_map/flat_multimap/cend.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const_iterator cend() const noexcept;

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


## 計算量
Expand Down
3 changes: 3 additions & 0 deletions reference/flat_map/flat_multimap/erase.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ int main()
}
}
```
* erase[color ff0000]
* fm.begin()[link begin.md]
* fm.end()[link end.md]

#### 出力
```
Expand Down
2 changes: 0 additions & 2 deletions reference/flat_map/flat_multimap/replace.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ int main()
// 事前条件の確認
assert(keys.size() == values.size());
assert(std::is_sorted(keys.begin(), keys.end()));
assert(std::adjacent_find(keys.begin(), keys.end()) == keys.end());
std::flat_multimap<std::string, int> fm;
Expand All @@ -68,7 +67,6 @@ int main()
* replace[color ff0000]
* fm.size()[link size.md]
* std::is_sorted[link /reference/algorithm/is_sorted.md]
* std::adjacent_find[link /reference/algorithm/adjacent_find.md]

### 出力
```
Expand Down
1 change: 1 addition & 0 deletions reference/flat_map/flat_multimap/swap.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ int main()
print("fm2", fm2);
}
```
* swap[color ff0000]

### 出力
```
Expand Down
3 changes: 3 additions & 0 deletions reference/flat_map/sorted_equivalent_t.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ int main()

### 出力
```
3 : a
5 : d
15 : e
```

## バージョン
Expand Down
3 changes: 3 additions & 0 deletions reference/flat_map/sorted_unique_t.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ int main()

### 出力
```
3 : a
5 : d
15 : e
```

## バージョン
Expand Down
2 changes: 0 additions & 2 deletions reference/flat_set/flat_multiset/replace.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ int main()
// 事前条件の確認
assert(std::is_sorted(keys.begin(), keys.end()));
assert(std::adjacent_find(keys.begin(), keys.end()) == keys.end());
std::flat_multiset<std::string> fs;
Expand All @@ -65,7 +64,6 @@ int main()
* replace[color ff0000]
* fs.size()[link size.md]
* std::is_sorted[link /reference/algorithm/is_sorted.md]
* std::adjacent_find[link /reference/algorithm/adjacent_find.md]
* std::move[link /reference/utility/move.md]

### 出力
Expand Down

0 comments on commit 6972631

Please sign in to comment.