2
2
<feed xmlns =" http://www.w3.org/2005/Atom" >
3
3
<title >cpprefjp - C++日本語リファレンス</title >
4
4
<link href =" https://cpprefjp.github.io" />
5
- <updated >2024-11-18T05:58:14.968292 </updated >
6
- <id >e55a27d6-7488-4314-8864-2b68cc9053aa </id >
5
+ <updated >2024-11-18T06:02:01.869135 </updated >
6
+ <id >ba650568-8b3a-4316-b933-e86e14b892f2 </id >
7
7
8
8
9
9
<entry >
@@ -929,51 +929,4 @@ index 4cf7047e0..79b80c7ac 100644
929
929
</author >
930
930
</entry >
931
931
932
- <entry >
933
- <title >elifdef/elifndefのサポートを追加 [P2334R1] -- P2334R1 : elifはあった</title >
934
- <link href =" https://cpprefjp.github.io/lang/cpp23/add_support_for_preprocessing_directives_elifdef_and_elifndef.html" />
935
- <id >5151c6a0ac0b782e30f8464c11cb72296acc0d21:lang/cpp23/add_support_for_preprocessing_directives_elifdef_and_elifndef.md</id >
936
- <updated >2024-11-17T01:24:19+09:00</updated >
937
-
938
- <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
939
- index 50f00f7b5..ac742192c 100644
940
- --- a/lang/cpp23/add_support_for_preprocessing_directives_elifdef_and_elifndef.md
941
- +++ b/lang/cpp23/add_support_for_preprocessing_directives_elifdef_and_elifndef.md
942
- @@ -1,4 +1,4 @@
943
- -# elif/elifdef/elifndefのサポートを追加 [P2334R1]
944
- +# elifdef/elifndefのサポートを追加 [P2334R1]
945
- * cpp23[meta cpp]
946
-
947
- & lt;!-- start lang caution --& gt;
948
- @@ -12,11 +12,11 @@
949
- ## 概要
950
- C++23では、以下のプリプロセス時条件式が追加される:
951
-
952
- -- `#if`に対応する`#elif`を追加。`#if`/`#ifdef`/`#ifndef`が偽だった場合の条件式を記述できる
953
- -- `#ifdef`に対応する`#elifdef`を追加。`#if`/`#ifdef`/`#ifndef`が偽だった場合の、特定の識別子が定義されているかの判定を記述できる
954
- -- `#ifndef`に対応する`#elifndef`を追加。`#if`/`#ifdef`/`#ifndef`が偽だった場合の、特定の識別子が定義されていないかの判定を記述できる
955
- +- `#ifdef`に対応する`#elif`である、`#elifdef`を追加。`#if`/`#ifdef`/`#ifndef`が偽だった場合の、特定の識別子(マクロ名)が定義されているかの判定を記述できる
956
- +- `#ifndef`に対応する`#elif`である、`#elifndef`を追加。`#if`/`#ifdef`/`#ifndef`が偽だった場合の、特定の識別子(マクロ名)が定義されていないかの判定を記述できる
957
-
958
- -これまでは`#if`が偽だった場合のさらなる条件式を記述するためには`#else`にネストして`#if`を記述する必要があったが、そのような条件分岐が書きやすくなる。
959
- +
960
- +これまでは`#elif`において特定のマクロが定義されているかを調べるために`#elif defined(macro_name) / #elif !defined(macro_name)`と書く必要があり、`#if`に対する`#ifdef macro_name / #ifndef macro_name`のような短縮ディレクティブが用意されていなかったが、C++23からは`#if`と`#elif`の両方で`def/ndef`付きのディレクティブが利用できるようになる。
961
-
962
- ```cpp
963
- #define FOO 2
964
- @@ -36,4 +36,4 @@ C++23では、以下のプリプロセス時条件式が追加される:
965
-
966
-
967
- ## 参照
968
- -- [P2334R1 Add support for preprocessing directives elifdef and elifndef](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2334r1.pdf)
969
- \ No newline at end of file
970
- +- [P2334R1 Add support for preprocessing directives elifdef and elifndef](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2334r1.pdf)
971
- < /code>< /pre> </summary >
972
-
973
- <author >
974
- <name >onihusube</name >
975
-
976
- </author >
977
- </entry >
978
-
979
932
</feed >
0 commit comments