22<feed xmlns =" http://www.w3.org/2005/Atom" >
33 <title >cpprefjp - C++日本語リファレンス</title >
44 <link href =" https://cpprefjp.github.io" />
5- <updated >2024-11-16T14:40:32.649188 </updated >
6- <id >5ce5b0ab-b39a-4924-a451-7dea91f8ed42 </id >
5+ <updated >2024-11-16T16:27:23.874506 </updated >
6+ <id >e94849c8-7509-4744-b1ef-7b42b4e94b17 </id >
77
88
9+ <entry >
10+ <title >elifdef/elifndefのサポートを追加 [P2334R1] -- P2334R1 : elifはあった</title >
11+ <link href =" https://cpprefjp.github.io/lang/cpp23/add_support_for_preprocessing_directives_elifdef_and_elifndef.html" />
12+ <id >5151c6a0ac0b782e30f8464c11cb72296acc0d21:lang/cpp23/add_support_for_preprocessing_directives_elifdef_and_elifndef.md</id >
13+ <updated >2024-11-17T01:24:19+09:00</updated >
14+
15+ <summary type =" html" >< pre>< code> diff --git a/lang/cpp23/add_support_for_preprocessing_directives_elifdef_and_elifndef.md b/lang/cpp23/add_support_for_preprocessing_directives_elifdef_and_elifndef.md
16+ index 50f00f7b5..ac742192c 100644
17+ --- a/lang/cpp23/add_support_for_preprocessing_directives_elifdef_and_elifndef.md
18+ +++ b/lang/cpp23/add_support_for_preprocessing_directives_elifdef_and_elifndef.md
19+ @@ -1,4 +1,4 @@
20+ -# elif/elifdef/elifndefのサポートを追加 [P2334R1]
21+ +# elifdef/elifndefのサポートを追加 [P2334R1]
22+ * cpp23[meta cpp]
23+
24+ & lt;!-- start lang caution --& gt;
25+ @@ -12,11 +12,11 @@
26+ ## 概要
27+ C++23では、以下のプリプロセス時条件式が追加される:
28+
29+ -- `#if`に対応する`#elif`を追加。`#if`/`#ifdef`/`#ifndef`が偽だった場合の条件式を記述できる
30+ -- `#ifdef`に対応する`#elifdef`を追加。`#if`/`#ifdef`/`#ifndef`が偽だった場合の、特定の識別子が定義されているかの判定を記述できる
31+ -- `#ifndef`に対応する`#elifndef`を追加。`#if`/`#ifdef`/`#ifndef`が偽だった場合の、特定の識別子が定義されていないかの判定を記述できる
32+ +- `#ifdef`に対応する`#elif`である、`#elifdef`を追加。`#if`/`#ifdef`/`#ifndef`が偽だった場合の、特定の識別子(マクロ名)が定義されているかの判定を記述できる
33+ +- `#ifndef`に対応する`#elif`である、`#elifndef`を追加。`#if`/`#ifdef`/`#ifndef`が偽だった場合の、特定の識別子(マクロ名)が定義されていないかの判定を記述できる
34+
35+ -これまでは`#if`が偽だった場合のさらなる条件式を記述するためには`#else`にネストして`#if`を記述する必要があったが、そのような条件分岐が書きやすくなる。
36+ +
37+ +これまでは`#elif`において特定のマクロが定義されているかを調べるために`#elif defined(macro_name) / #elif !defined(macro_name)`と書く必要があり、`#if`に対する`#ifdef macro_name / #ifndef macro_name`のような短縮ディレクティブが用意されていなかったが、C++23からは`#if`と`#elif`の両方で`def/ndef`付きのディレクティブが利用できるようになる。
38+
39+ ```cpp
40+ #define FOO 2
41+ @@ -36,4 +36,4 @@ C++23では、以下のプリプロセス時条件式が追加される:
42+
43+
44+ ## 参照
45+ -- [P2334R1 Add support for preprocessing directives elifdef and elifndef](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2334r1.pdf)
46+ \ No newline at end of file
47+ +- [P2334R1 Add support for preprocessing directives elifdef and elifndef](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2334r1.pdf)
48+ < /code>< /pre> </summary >
49+
50+ <author >
51+ <name >onihusube</name >
52+ <email >44743040+onihusube@users.noreply.github.com</email >
53+ </author >
54+ </entry >
55+
956 <entry >
1057 <title >名前付きユニバーサルキャラクタ名 [P2071R2] -- 名前付きユニバーサルキャラクタ名: マッチングについて修正</title >
1158 <link href =" https://cpprefjp.github.io/lang/cpp23/named_universal_character_escapes.html" />
@@ -3290,32 +3337,4 @@ index 000000000..b512f12d4
32903337 </author >
32913338 </entry >
32923339
3293- <entry >
3294- <title >はじめてのコントリビュート -- 用語の誤った使い方を検出するCIの説明を追加</title >
3295- <link href =" https://cpprefjp.github.io/start_editing.html" />
3296- <id >710972af237d8d0cab53f90317494df675f0a3d0:start_editing.md</id >
3297- <updated >2024-11-11T14:17:55+09:00</updated >
3298-
3299- <summary type =" html" >< pre>< code> diff --git a/start_editing.md b/start_editing.md
3300- index c200f29c9..dae4ce787 100644
3301- --- a/start_editing.md
3302- +++ b/start_editing.md
3303- @@ -57,6 +57,9 @@ buildアクションで、MarkdownからHTMLへの変換と、GitHub Pagesへの
3304- - NGワードの検出 (ngword checkアクション)
3305- - 日本語入力環境における典型的な誤入力・誤変換をエラーとして検知する
3306- - 具体的な対象ワードリストは[ngword_check.py](https://github.com/cpprefjp/site/blob/master/.github/workflows/script/ngword_check.py)を参照
3307- +- 用語の誤った使い方を検出 (defined word checkアクション)
3308- + - 用語の許可した使い方、許可しない使い方を列挙し、許可した使い方以外の使われ方をエラーとして検出する
3309- + - 具体的な用語、許可した使い方、許可しない使い方は、[defined_word_check.py](https://github.com/cpprefjp/site/blob/master/.github/workflows/script/defined_word_check.py)を参照
3310-
3311-
3312- ### 自動反映ツール
3313- < /code>< /pre> </summary >
3314-
3315- <author >
3316- <name >Akira Takahashi</name >
3317- <email >faithandbrave@gmail.com</email >
3318- </author >
3319- </entry >
3320-
33213340</feed >
0 commit comments