Skip to content

Commit

Permalink
畳み込み式 : 式種類の参照方法を微調整
Browse files Browse the repository at this point in the history
  • Loading branch information
onihusube committed Nov 17, 2023
1 parent 1326e68 commit 7a0af00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lang/cpp17/folding_expressions.md
Expand Up @@ -20,7 +20,7 @@

* 畳み込み式は括弧 `()` で囲まれなければならない
* `op` は後述する二項演算子
二項畳み込み (3, 4) の場合 `op` は同一でなければならない
二項畳み込み (3)(4) の場合 `op` は同一でなければならない
* `pack` は未展開のパラメータパック (規格ではキャスト式 cast-expression と呼ばれる)
* `init` は未展開のパラメータパック以外 (規格ではキャスト式 cast-expression と呼ばれる)
* 畳み込み式は以下のように展開される:
Expand Down Expand Up @@ -73,7 +73,7 @@

### パラメータパックが空のときの式の値

単項畳み込み (1, 2) でパラメータパックが空の場合、以下の演算子については式の値が設定される:
単項畳み込み (1)(2) でパラメータパックが空の場合、以下の演算子については式の値が設定される:

| 演算子 ||
|------|------|
Expand All @@ -83,7 +83,7 @@

上記以外の演算子に対し空のパラメータパックが適用された場合、プログラムは不適格となる。

空のパラメータパックが適用された場合の挙動を変えるには二項畳み込み (3, 4) で値を与える。
空のパラメータパックが適用された場合の挙動を変えるには二項畳み込み (3)(4) で値を与える。


##
Expand Down

0 comments on commit 7a0af00

Please sign in to comment.