Skip to content

Commit 2b5b392

Browse files
committed
コード例の include の不足を修正
1 parent 9b8ca47 commit 2b5b392

File tree

16 files changed

+16
-0
lines changed

16 files changed

+16
-0
lines changed

reference/algorithm/ranges_copy_backward.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ copy_backward_result {
6363
#include <algorithm>
6464
#include <iostream>
6565
#include <list>
66+
#include <iterator>
6667

6768
int main() {
6869
std::list<int> ls = { 1,2,3,4,5 };

reference/chrono/parse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ namespace std::chrono {
111111
112112
## 例
113113
```cpp example
114+
#include <iostream>
114115
#include <sstream>
115116
#include <chrono>
116117

reference/chrono/year_month_day/op_constructor.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ year_month_day(year_month_day&&) = default; // (7) C++20
6262
### 例
6363
```cpp example
6464
#include <cassert>
65+
#include <iostream>
6566
#include <chrono>
6667
6768
namespace chrono = std::chrono;

reference/chrono/zoned_time/get_info.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ return zone->get_info(tp);
2626
## 例
2727
```cpp example
2828
#include <cassert>
29+
#include <iostream>
2930
#include <chrono>
3031
3132
namespace chrono = std::chrono;

reference/chrono/zoned_time/get_local_time.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ return zone->to_local(tp);
2828
## 例
2929
```cpp example
3030
#include <cassert>
31+
#include <iostream>
3132
#include <chrono>
3233
3334
namespace chrono = std::chrono;

reference/chrono/zoned_time/op_constructor.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ zoned_time(string_view name,
116116
117117
### 例
118118
```cpp example
119+
#include <cassert>
119120
#include <iostream>
120121
#include <chrono>
121122

reference/chrono/zoned_time/op_local_time.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ return get_local_time();
2626
##
2727
```cpp example
2828
#include <cassert>
29+
#include <iostream>
2930
#include <chrono>
3031

3132
namespace chrono = std::chrono;

reference/iterator/const_iterator.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ namespace std {
2323
## 例
2424
```cpp example
2525
#include <iterator>
26+
#include <vector>
2627
2728
int main() {
2829
static_assert(std::same_as<std::const_iterator<int*>, std::basic_const_iterator<int*>>);

reference/iterator/const_sentinel.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ namespace std {
2424
## 例
2525
```cpp example
2626
#include <iterator>
27+
#include <vector>
2728
2829
int main() {
2930
static_assert(std::same_as<std::const_sentinel<int*>, std::basic_const_iterator<int*>>);

reference/iterator/indirectly_readable.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ concept indirectly_readable =
5757
#include <memory>
5858
#include <vector>
5959
#include <optional>
60+
#include <iterator>
6061

6162
template<typename T>
6263
requires std::indirectly_readable<T>

0 commit comments

Comments
 (0)