Skip to content

Commit 919efc3

Browse files
committed
クラス定義の後のセミコロン忘れを修正
1 parent 0587fce commit 919efc3

13 files changed

Lines changed: 15 additions & 15 deletions

lang/cpp11/override_final.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class-head:
4242
```cpp
4343
class derived_class final : public base_class {
4444
...
45-
}
45+
};
4646
```
4747
4848
また、メンバ変数やメンバ関数の名前以降(member-declarator)は下記の文法となる:

lang/cpp17/guaranteed_copy_elision.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Temporary materialization conversion
2525
例:
2626

2727
```cpp
28-
struct X { int n; }
28+
struct X { int n; };
2929
int k = X().n; // ok, X() prvalue は xvalue に変換される
3030
```
3131

lang/cpp20/constinit.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ int main () {
7777
```cpp
7878
struct S {
7979
constinit int n; // NG
80-
}
80+
};
8181

8282
int main() {
8383
constinit int m = 10; // NG
@@ -91,7 +91,7 @@ constinit extern int N; // NG、未定義動作、何も言われない
9191
9292
struct S {
9393
constinit static int M;
94-
}
94+
};
9595
int S::M = 12; // NG、constinitはこちらに必要、おそらく警告が発せられる
9696
```
9797

lang/cpp20/more_constexpr_containers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ struct sample {
313313
}
314314
m_alloc.deallocate(m_p, m_size);
315315
}
316-
}
316+
};
317317

318318
constexpr sample<char> str{"Hello."};
319319
// 実行時、strは"Hello"を保持する静的配列を参照するようになる

lang/future/contract-based_programming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ struct derived : base {
247247
int g(int n) override {
248248
return -1;
249249
}
250-
}
250+
};
251251
```
252252
253253
## この機能が必要になった背景・経緯

reference/array/array/tuple_element.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace std {
1212
struct tuple_element<I, array<T, N>> {
1313
static_assert(I < N, implementation-defined);
1414
using type = T;
15-
}
15+
};
1616
}
1717
```
1818

reference/contracts/assertion_kind.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace std::contracts {
1010
pre = 1,
1111
post = 2,
1212
assertion = 3
13-
}
13+
};
1414
}
1515
```
1616

reference/contracts/contract_violation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace std::contracts {
1515
assertion_kind kind() const noexcept;
1616
source_location location() const noexcept;
1717
evaluation_semantic semantic() const noexcept;
18-
}
18+
};
1919
}
2020
```
2121

reference/contracts/detection_mode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace std::contracts {
99
enum class detection_mode : unspecified {
1010
predicate_false = 1,
1111
evaluation_exception = 2
12-
}
12+
};
1313
}
1414
```
1515

reference/contracts/evaluation_semantic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace std::contracts {
1212
enforce = 3,
1313
quick_enforce = 4 // ,
1414
// assume = 5 <-- 将来追加予定
15-
}
15+
};
1616
}
1717
```
1818

0 commit comments

Comments
 (0)