Skip to content

Commit c012fa3

Browse files
committed
いくつかのコード例を修正
1 parent 00f1187 commit c012fa3

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

reference/iterator/basic_const_iterator/op_plus.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ return basic_const_iterator(i.current_ + n);
4141
int main() {
4242
std::vector vec = {1, 2, 3, 4, 5};
4343

44-
std::basic_const_iterator cit = vec.end();
44+
std::basic_const_iterator cit = vec.begin();
4545

4646
auto cit2 = cit + 3;
4747
auto cit3 = 4 + cit;

reference/iterator/permutable.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ int main() {
4444
f<std::forward_list<int>::iterator>("std::forward_list<int>::iterator");
4545
f<std::list<int>::iterator>("std::list<int>::iterator");
4646
f<std::vector<int>::iterator>("std::vector<int>::iterator");
47+
f<std::vector<std::unique_ptr<int>>::iterator>("std::vector<std::unique_ptr<int>>::iterator");
4748
4849
std::cout << "\n";
4950
f<const int*>("const int*");

reference/stop_token/stop_token/stop_possible.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ int main()
6262
// 停止状態が停止要求を受け取った場合は、
6363
// その後で stop_source が破棄されても stop_possible() == true のままになる
6464
assert(st1.stop_possible() == true);
65-
assert(st2.stop_possible() == false);
65+
assert(st2.stop_possible() == true);
6666
assert(st3.stop_possible() == false);
6767
}
6868
```

0 commit comments

Comments
 (0)