|
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-05-17T05:05:59.864186</updated> |
6 |
| - <id>ce2e8fd8-fbcd-445c-9e29-1a5c1a7086b6</id> |
| 5 | + <updated>2024-05-17T05:34:28.411741</updated> |
| 6 | + <id>63e5ddf8-48e9-4268-a303-39e1a7d17d81</id> |
7 | 7 |
|
8 | 8 |
|
| 9 | + <entry> |
| 10 | + <title>piecewise_linear_distribution -- Merge pull request #1277 from cpprefjp/typofix/mix_to_min</title> |
| 11 | + <link href="https://cpprefjp.github.io/reference/random/piecewise_linear_distribution.html"/> |
| 12 | + <id>78f6f64b7865c052d06ef5bf47bd1d964f456c96:reference/random/piecewise_linear_distribution.md</id> |
| 13 | + <updated>2024-05-17T14:30:39+09:00</updated> |
| 14 | + |
| 15 | + <summary type="html"><pre><code>diff --git a/reference/random/piecewise_linear_distribution.md b/reference/random/piecewise_linear_distribution.md |
| 16 | +index a213d6de1..4fffc975e 100644 |
| 17 | +--- a/reference/random/piecewise_linear_distribution.md |
| 18 | ++++ b/reference/random/piecewise_linear_distribution.md |
| 19 | +@@ -48,7 +48,7 @@ namespace std { |
| 20 | + | [`intervals`](piecewise_linear_distribution/intervals.md) | 区間の数列を取得する | C++11 | |
| 21 | + | [`densities`](piecewise_linear_distribution/densities.md) | 重み付けの数列を取得する | C++11 | |
| 22 | + | [`param`](piecewise_linear_distribution/param.md) | 分布のパラメータを取得/設定する | C++11 | |
| 23 | +-| [`mix`](piecewise_linear_distribution/min.md) | 下限を取得する | C++11 | |
| 24 | ++| [`min`](piecewise_linear_distribution/min.md) | 下限を取得する | C++11 | |
| 25 | + | [`max`](piecewise_linear_distribution/max.md) | 上限を取得する | C++11 | |
| 26 | + |
| 27 | + |
| 28 | +</code></pre></summary> |
| 29 | + |
| 30 | + <author> |
| 31 | + <name>Akira Takahashi</name> |
| 32 | + |
| 33 | + </author> |
| 34 | + </entry> |
| 35 | + |
| 36 | + <entry> |
| 37 | + <title>piecewise_linear_distribution -- Fix typo</title> |
| 38 | + <link href="https://cpprefjp.github.io/reference/random/piecewise_linear_distribution.html"/> |
| 39 | + <id>5871133be244bda206b60a0a3226ea55a0b0ab77:reference/random/piecewise_linear_distribution.md</id> |
| 40 | + <updated>2024-05-17T14:21:26+09:00</updated> |
| 41 | + |
| 42 | + <summary type="html"><pre><code>diff --git a/reference/random/piecewise_linear_distribution.md b/reference/random/piecewise_linear_distribution.md |
| 43 | +index a213d6de1..4fffc975e 100644 |
| 44 | +--- a/reference/random/piecewise_linear_distribution.md |
| 45 | ++++ b/reference/random/piecewise_linear_distribution.md |
| 46 | +@@ -48,7 +48,7 @@ namespace std { |
| 47 | + | [`intervals`](piecewise_linear_distribution/intervals.md) | 区間の数列を取得する | C++11 | |
| 48 | + | [`densities`](piecewise_linear_distribution/densities.md) | 重み付けの数列を取得する | C++11 | |
| 49 | + | [`param`](piecewise_linear_distribution/param.md) | 分布のパラメータを取得/設定する | C++11 | |
| 50 | +-| [`mix`](piecewise_linear_distribution/min.md) | 下限を取得する | C++11 | |
| 51 | ++| [`min`](piecewise_linear_distribution/min.md) | 下限を取得する | C++11 | |
| 52 | + | [`max`](piecewise_linear_distribution/max.md) | 上限を取得する | C++11 | |
| 53 | + |
| 54 | + |
| 55 | +</code></pre></summary> |
| 56 | + |
| 57 | + <author> |
| 58 | + <name>Kotaro Yoshimoto</name> |
| 59 | + |
| 60 | + </author> |
| 61 | + </entry> |
| 62 | + |
9 | 63 | <entry>
|
10 | 64 | <title>format -- C++26対応として、実行時の書式文字列サポートを記載 (close #1236)</title>
|
11 | 65 | <link href="https://cpprefjp.github.io/reference/format.html"/>
|
@@ -909,203 +963,6 @@ index 000000000..9081dcaa6
|
909 | 963 | +
|
910 | 964 | +## 参照
|
911 | 965 | +- [P2693R1 Formatting `thread::id` and `stacktrace`](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2693r1.pdf)
|
912 |
| -</code></pre></summary> |
913 |
| - |
914 |
| - <author> |
915 |
| - <name>Akira Takahashi</name> |
916 |
| - |
917 |
| - </author> |
918 |
| - </entry> |
919 |
| - |
920 |
| - <entry> |
921 |
| - <title>basic_stacktrace -- stacktrace : formatterの特殊化を追加</title> |
922 |
| - <link href="https://cpprefjp.github.io/reference/stacktrace/basic_stacktrace.html"/> |
923 |
| - <id>e6a1afa4e17e3e9cda6ebd5c559a07839bf77644:reference/stacktrace/basic_stacktrace.md</id> |
924 |
| - <updated>2024-05-15T13:01:24+09:00</updated> |
925 |
| - |
926 |
| - <summary type="html"><pre><code>diff --git a/reference/stacktrace/basic_stacktrace.md b/reference/stacktrace/basic_stacktrace.md |
927 |
| -index 9b92d325f..18aa7ed55 100644 |
928 |
| ---- a/reference/stacktrace/basic_stacktrace.md |
929 |
| -+++ b/reference/stacktrace/basic_stacktrace.md |
930 |
| -@@ -155,6 +155,13 @@ namespace std { |
931 |
| - | `template &lt;class Allocator&gt;`&lt;br/&gt; `struct hash&lt;basic_stacktrace&lt;Allocator&gt;&gt;;` | `hash`クラスの`basic_stacktrace`に対する特殊化 | C++23 | |
932 |
| - |
933 |
| - |
934 |
| -+### 文字列フォーマットサポート |
935 |
| -+ |
936 |
| -+| 名前 | 説明 | 対応バージョン | |
937 |
| -+|------|------|----------------| |
938 |
| -+| `template &lt;class Allocator&gt;`&lt;br/&gt; `struct formatter&lt;basic_stacktrace&lt;Allocator&gt;&gt;;` | [`formatter`](/reference/format/formatter.md)の特殊化 | C++23 | |
939 |
| -+ |
940 |
| -+ |
941 |
| - ## 例 |
942 |
| - ### 基本的な使い方 |
943 |
| - ```cpp example |
944 |
| -@@ -234,3 +241,6 @@ Expression &#39;i &gt;= 0&#39; is false in f(int) at /app/example.cpp:15 |
945 |
| - - 13まで : `-lstdc++_libbacktrace` |
946 |
| - - 14以降 : `-lstdc++exp` |
947 |
| - |
948 |
| -+ |
949 |
| -+## 参照 |
950 |
| -+- [P2693R1 Formatting `thread::id` and `stacktrace`](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2693r1.pdf) |
951 |
| -</code></pre></summary> |
952 |
| - |
953 |
| - <author> |
954 |
| - <name>Akira Takahashi</name> |
955 |
| - |
956 |
| - </author> |
957 |
| - </entry> |
958 |
| - |
959 |
| - <entry> |
960 |
| - <title>stacktrace_entry -- stacktrace : formatterの特殊化を追加</title> |
961 |
| - <link href="https://cpprefjp.github.io/reference/stacktrace/stacktrace_entry.html"/> |
962 |
| - <id>e6a1afa4e17e3e9cda6ebd5c559a07839bf77644:reference/stacktrace/stacktrace_entry.md</id> |
963 |
| - <updated>2024-05-15T13:01:24+09:00</updated> |
964 |
| - |
965 |
| - <summary type="html"><pre><code>diff --git a/reference/stacktrace/stacktrace_entry.md b/reference/stacktrace/stacktrace_entry.md |
966 |
| -index fd95a8859..a71f52ce2 100644 |
967 |
| ---- a/reference/stacktrace/stacktrace_entry.md |
968 |
| -+++ b/reference/stacktrace/stacktrace_entry.md |
969 |
| -@@ -86,6 +86,13 @@ namespace std { |
970 |
| - | `template &lt;&gt;`&lt;br/&gt; `struct hash&lt;stacktrace_entry&gt;;` | `hash`クラスの`stacktrace_entry`に対する特殊化 | C++23 | |
971 |
| - |
972 |
| - |
973 |
| -+## 文字列フォーマットサポート |
974 |
| -+ |
975 |
| -+| 名前 | 説明 | 対応バージョン | |
976 |
| -+|------|------|----------------| |
977 |
| -+| [`formatter`](stacktrace_entry/formatter.md) | [`std::formatter`](/reference/format/formatter.md)クラスの特殊化 | C++23 | |
978 |
| -+ |
979 |
| -+ |
980 |
| - ## 例 |
981 |
| - ```cpp example |
982 |
| - #include &lt;iostream&gt; |
983 |
| -</code></pre></summary> |
984 |
| - |
985 |
| - <author> |
986 |
| - <name>Akira Takahashi</name> |
987 |
| - |
988 |
| - </author> |
989 |
| - </entry> |
990 |
| - |
991 |
| - <entry> |
992 |
| - <title>formatter -- stacktrace : formatterの特殊化を追加</title> |
993 |
| - <link href="https://cpprefjp.github.io/reference/stacktrace/stacktrace_entry/formatter.html"/> |
994 |
| - <id>e6a1afa4e17e3e9cda6ebd5c559a07839bf77644:reference/stacktrace/stacktrace_entry/formatter.md</id> |
995 |
| - <updated>2024-05-15T13:01:24+09:00</updated> |
996 |
| - |
997 |
| - <summary type="html"><pre><code>diff --git a/reference/stacktrace/stacktrace_entry/formatter.md b/reference/stacktrace/stacktrace_entry/formatter.md |
998 |
| -new file mode 100644 |
999 |
| -index 000000000..9ba096a8f |
1000 |
| ---- /dev/null |
1001 |
| -+++ b/reference/stacktrace/stacktrace_entry/formatter.md |
1002 |
| -@@ -0,0 +1,68 @@ |
1003 |
| -+# formatter |
1004 |
| -+* stacktrace[meta header] |
1005 |
| -+* std[meta namespace] |
1006 |
| -+* class[meta id-type] |
1007 |
| -+* cpp23[meta cpp] |
1008 |
| -+ |
1009 |
| -+```cpp |
1010 |
| -+namespace std { |
1011 |
| -+ struct formatter&lt;stacktrace_entry&gt;; |
1012 |
| -+} |
1013 |
| -+``` |
1014 |
| -+ |
1015 |
| -+## 概要 |
1016 |
| -+`stacktrace_entry`クラスに対する[`std::formatter`](/reference/format/formatter.md)クラステンプレートの特殊化。 |
1017 |
| -+ |
1018 |
| -+フォーマットフラグとしては、以下を使用できる: |
1019 |
| -+ |
1020 |
| -+``` |
1021 |
| -+[[fill] [align] [width]] |
1022 |
| -+``` |
1023 |
| -+ |
1024 |
| -+ |
1025 |
| -+## 例 |
1026 |
| -+```cpp example |
1027 |
| -+#include &lt;print&gt; |
1028 |
| -+#include &lt;stacktrace&gt; |
1029 |
| -+ |
1030 |
| -+void g() { |
1031 |
| -+ std::stacktrace st = std::stacktrace::current(0, 1); |
1032 |
| -+ std::stacktrace_entry entry = st[0]; |
1033 |
| -+ |
1034 |
| -+ std::println(&#34;{}&#34;, entry); |
1035 |
| -+ std::println(&#34;{: &gt;30}&#34;, entry); |
1036 |
| -+} |
1037 |
| -+ |
1038 |
| -+void f() { |
1039 |
| -+ g(); |
1040 |
| -+} |
1041 |
| -+ |
1042 |
| -+int main() { |
1043 |
| -+ f(); |
1044 |
| -+} |
1045 |
| -+``` |
1046 |
| -+* std::stacktrace[link /reference/stacktrace/basic_stacktrace.md] |
1047 |
| -+* current[link /reference/stacktrace/basic_stacktrace/current.md] |
1048 |
| -+ |
1049 |
| -+### 出力 |
1050 |
| -+``` |
1051 |
| -+ g() at /app/example.cpp:5 |
1052 |
| -+ g() at /app/example.cpp:5 |
1053 |
| -+``` |
1054 |
| -+ |
1055 |
| -+## バージョン |
1056 |
| -+### 言語 |
1057 |
| -+- C++23 |
1058 |
| -+ |
1059 |
| -+### 処理系 |
1060 |
| -+- [Clang](/implementation.md#clang): ?? |
1061 |
| -+- [GCC](/implementation.md#gcc): 14 |
1062 |
| -+- [Visual C++](/implementation.md#visual_cpp): ?? |
1063 |
| -+ |
1064 |
| -+ |
1065 |
| -+## 関連項目 |
1066 |
| -+- [`std::format()`](/reference/format/format.md) (フォーマットの詳細) |
1067 |
| -+ |
1068 |
| -+ |
1069 |
| -+## 参照 |
1070 |
| -+- [P2693R1 Formatting `thread::id` and `stacktrace`](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2693r1.pdf) |
1071 |
| -</code></pre></summary> |
1072 |
| - |
1073 |
| - <author> |
1074 |
| - <name>Akira Takahashi</name> |
1075 |
| - |
1076 |
| - </author> |
1077 |
| - </entry> |
1078 |
| - |
1079 |
| - <entry> |
1080 |
| - <title>format -- format : C++26対応としてポインタ値を大文字で出力するPオプションを追加 (close #1187)</title> |
1081 |
| - <link href="https://cpprefjp.github.io/reference/format/format.html"/> |
1082 |
| - <id>0b3b945a6d99aa56c955e2abbc367af09a3fa85c:reference/format/format.md</id> |
1083 |
| - <updated>2024-05-15T12:25:55+09:00</updated> |
1084 |
| - |
1085 |
| - <summary type="html"><pre><code>diff --git a/reference/format/format.md b/reference/format/format.md |
1086 |
| -index 8745522d7..2f280f494 100644 |
1087 |
| ---- a/reference/format/format.md |
1088 |
| -+++ b/reference/format/format.md |
1089 |
| -@@ -155,9 +155,10 @@ string s3 = format(&#34;{} {1}&#34;, &#34;a&#34;, &#34;b&#34;); // コンパイルエラー |
1090 |
| - |
1091 |
| - #### ポインタの場合 |
1092 |
| - |
1093 |
| --| type | 意味 | 効果 | |
1094 |
| --|:-----------|:-------------------|:----------------------------------------------------------------------------------------------------------------| |
1095 |
| --| p | アドレスを出力する | `0x` につづいて、`to_chars(first, last, reinterpret_cast&lt;uintptr_t&gt;(value), 16)` の結果を出力する | |
1096 |
| -+| type | 意味 | 効果 | 対応バージョン | |
1097 |
| -+|:-----|:-------------------|:--------------------------------------------------------------------------------------------------|----------------| |
1098 |
| -+| p | アドレスを出力する | `0x` につづいて、`to_chars(first, last, reinterpret_cast&lt;uintptr_t&gt;(value), 16)` の結果を出力する | C++20 | |
1099 |
| -+| P | アドレスを出力する | pと基本的に同じだが、9桁を超える場合に大文字にし、先頭に`0X`をつける | C++26 | |
1100 |
| - |
1101 |
| - デフォルトは `p`。 |
1102 |
| - |
1103 |
| -@@ -682,3 +683,5 @@ wstring format(const locale&amp; loc, wformat_string&lt;Args...&gt; fmt, const Args&amp;... ar |
1104 |
| - - [P2286R8 Formatting Ranges](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2286r8.html) |
1105 |
| - - C++23から、Range・コンテナ、`pair`、`tuple`のフォーマット出力、および文字・文字列のデバッグ指定 (`&#34;?&#34;`) が追加された |
1106 |
| - - [P2418R2 Add support for `std::generator`-like types to `std::format`](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2418r2.html) |
1107 |
| -+- [P2510R3 Formatting pointers](https://open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2510r3.pdf) |
1108 |
| -+ - C++26から、ポインタ値を大文字で出力する`P`オプションが追加された |
1109 | 966 | </code></pre></summary>
|
1110 | 967 |
|
1111 | 968 | <author>
|
|
0 commit comments