-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrss.xml
More file actions
317 lines (272 loc) · 17.9 KB
/
Copy pathrss.xml
File metadata and controls
317 lines (272 loc) · 17.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>cpprefjp - C++日本語リファレンス</title>
<link href="https://cpprefjp.github.io" />
<updated>2026-07-12T15:33:45.261786</updated>
<id>926ab709-d9be-4238-aafa-494b464c125b</id>
<entry>
<title>コンストラクタ -- shared_ptr: 別名コンストラクタの説明を修正</title>
<link href="https://cpprefjp.github.io/reference/memory/shared_ptr/op_constructor.html"/>
<id>a01a6baa0ea8aa85eb38913dc7c0be730e44ac0d:reference/memory/shared_ptr/op_constructor.md</id>
<updated>2026-07-12T20:50:11+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/memory/shared_ptr/op_constructor.md b/reference/memory/shared_ptr/op_constructor.md
index 4fae6d3fb..cc5ef5714 100644
--- a/reference/memory/shared_ptr/op_constructor.md
+++ b/reference/memory/shared_ptr/op_constructor.md
@@ -122,14 +122,14 @@ shared_ptr(shared_ptr&lt;Y&gt;&amp;&amp; r,
- (4) : 生ポインタの所有権、リソースを破棄する際に使用する関数オブジェクト、アロケータを受け取る。
- (5) : リソースを破棄する際に使用する関数オブジェクトを受け取り、ヌルポインタを所有する`shared_ptr`オブジェクトを構築する。
- (6) : リソースを破棄する際に使用する関数オブジェクトと、アロケータを受け取り、ヌルポインタを所有する`shared_ptr`オブジェクトを構築する。
-- (7) : `Y`のメンバへのポインタを共有する。
+- (7) : 他の`shared_ptr`オブジェクトとリソースを共有し、保持するポインタを個別に指定する。
- (8), (9) : 他の`shared_ptr`オブジェクトと、リソースを共有する。
- (10), (11) : 他の`shared_ptr`オブジェクトから、リソースの所有権を移動する。
- (12) : [`weak_ptr`](/reference/memory/weak_ptr.md)オブジェクトが参照するリソースから、所有権を共有する`shared_ptr`オブジェクトを構築する。
- (13) : `auto_ptr`オブジェクトから、リソースの所有権を移動する。
- (14) : [`unique_ptr`](/reference/memory/unique_ptr.md)オブジェクトから、リソースの所有権を移動する。
- (15) : (1)と同じく、所有権を持たない、空の`shared_ptr`オブジェクトを構築する。
-- (16) : (7)の右辺値版。`Y`を`*this`にムーブしつつ、それのメンバへのポインタを共有する。
+- (16) : 他の`shared_ptr`オブジェクトからリソースの所有権を移動し、保持するポインタを個別に指定する。
## 要件
@@ -164,13 +164,14 @@ shared_ptr(shared_ptr&lt;Y&gt;&amp;&amp; r,
- (4) : リソースを破棄する際に使用する関数オブジェクト`d`を受け取り、ポインタ`p`を所有する`shared_ptr`オブジェクトを構築する。アロケータオブジェクト`a`のコピーを、内部のメモリ確保に使用する。
- (5) : リソースを破棄する際に使用する関数オブジェクト`d`を受け取り、ヌルポインタを所有する`shared_ptr`オブジェクトを構築する。
- (6) : リソースを破棄する際に使用する関数オブジェクト`d`を受け取り、ヌルポインタを所有する`shared_ptr`オブジェクトを構築する。アロケータオブジェクト`a`のコピーを、内部のメモリ確保に使用する。
-- (7) : `r`の所有権を持ち、ポインタとしては`p`を保持する`shared_ptr`オブジェクトを構築する。
+- (7) : `r`と所有権を共有し、ポインタとしては`p`を保持する`shared_ptr`オブジェクトを構築する。
- (8), (9) : `r`が空の場合、空の`shared_ptr`オブジェクトを構築する。そうでなければ、`r`とリソースを共有する`shared_ptr`オブジェクトを構築する。
- (10), (11) : `r`が持つ所有権を、`*this`に移動する。
- (12) : `r`が持つポインタのコピーを共有する`shared_ptr`オブジェクトを構築する。
- (13) : `r`が持つ所有権を、`*this`に移動する。
- (14) : 以下のように、(3)のコンストラクタに委譲する。`Deleter`が参照型でなければ`shared_ptr(r.`[`release()`](/reference/memory/unique_ptr/release.md)`, r.`[`get_deleter()`](/reference/memory/unique_ptr/get_deleter.md)`)`を呼び出し、そうでなければ`shared_ptr(r.`[`release()`](/reference/memory/unique_ptr/release.md)`,` [`ref`](/reference/functional/ref.md)`(r.`[`get_deleter()`](/reference/memory/unique_ptr/get_deleter.md)`))`
- (15) : 空の`shared_ptr`オブジェクトを構築する。
+- (16) : `r`が持つ所有権を`*this`に移動し、ポインタとしては`p`を保持する`shared_ptr`オブジェクトを構築する。
## 事後条件
</code></pre></summary>
<author>
<name>komori-n</name>
<email>t_toshi2006@yahoo.co.jp</email>
</author>
</entry>
<entry>
<title>is_implicit_lifetime -- correct indent of sample</title>
<link href="https://cpprefjp.github.io/reference/type_traits/is_implicit_lifetime.html"/>
<id>aa2b2a03eb4ca45998a798ae48822468b6838c16:reference/type_traits/is_implicit_lifetime.md</id>
<updated>2026-07-09T23:13:16+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/type_traits/is_implicit_lifetime.md b/reference/type_traits/is_implicit_lifetime.md
index 9f10ce6f5..23f37b1cb 100644
--- a/reference/type_traits/is_implicit_lifetime.md
+++ b/reference/type_traits/is_implicit_lifetime.md
@@ -45,22 +45,23 @@ enum Enum {};
class Class {};
class NotTrivial {
public:
- ~NotTrivial() {}
+ ~NotTrivial() {}
};
-int main() {
- int i_array[1];
- NotTrivial nt_array[1];
-
- static_assert(std::is_implicit_lifetime&lt;int&gt;());
- static_assert(std::is_implicit_lifetime&lt;int*&gt;());
- static_assert(std::is_implicit_lifetime&lt;decltype(i_array)&gt;());
- static_assert(std::is_implicit_lifetime&lt;Enum&gt;());
- static_assert(std::is_implicit_lifetime&lt;Class&gt;());
- static_assert(!std::is_implicit_lifetime&lt;NotTrivial&gt;());
- static_assert(std::is_implicit_lifetime&lt;decltype(nt_array)&gt;());
- static_assert(std::is_implicit_lifetime&lt;std::pair&lt;int, int&gt;&gt;());
- static_assert(!std::is_implicit_lifetime&lt;std::pair&lt;int, NotTrivial&gt;&gt;());
+int main()
+{
+ int i_array[1];
+ NotTrivial nt_array[1];
+
+ static_assert(std::is_implicit_lifetime&lt;int&gt;());
+ static_assert(std::is_implicit_lifetime&lt;int*&gt;());
+ static_assert(std::is_implicit_lifetime&lt;decltype(i_array)&gt;());
+ static_assert(std::is_implicit_lifetime&lt;Enum&gt;());
+ static_assert(std::is_implicit_lifetime&lt;Class&gt;());
+ static_assert(!std::is_implicit_lifetime&lt;NotTrivial&gt;());
+ static_assert(std::is_implicit_lifetime&lt;decltype(nt_array)&gt;());
+ static_assert(std::is_implicit_lifetime&lt;std::pair&lt;int, int&gt;&gt;());
+ static_assert(!std::is_implicit_lifetime&lt;std::pair&lt;int, NotTrivial&gt;&gt;());
}
```
* std::is_implicit_lifetime[color ff0000]
</code></pre></summary>
<author>
<name>suomesta</name>
<email>shawn316michaels@gmail.com</email>
</author>
</entry>
<entry>
<title>static_assert のメッセージ省略を許可 [N3928] -- Merge pull request #1666 from cpprefjp/improve_outer_link_check</title>
<link href="https://cpprefjp.github.io/lang/cpp17/extending_static_assert.html"/>
<id>c53509c24c50a7aab31ab9138d8fe1b56a4de0f1:lang/cpp17/extending_static_assert.md</id>
<updated>2026-07-06T15:06:19+09:00</updated>
<summary type="html"><pre><code>diff --git a/lang/cpp17/extending_static_assert.md b/lang/cpp17/extending_static_assert.md
index b0d6ac338..f1269930e 100644
--- a/lang/cpp17/extending_static_assert.md
+++ b/lang/cpp17/extending_static_assert.md
@@ -52,7 +52,7 @@ example_static_assert.cpp:5:3: error: static_assert failed
## この機能が必要になった背景・経緯
`assert` は条件式のみを引数に取るのに対し、`static_assert` には診断メッセージを提供しなければならなかった。
-[Boost.StaticAssert](http://www.boost.org/doc/libs/release/doc/html/boost_staticassert.html) は以下のような `BOOST_STATIC_ASSERT` マクロを提供しており、
+[Boost.StaticAssert](https://www.boost.org/doc/libs/latest/libs/config/doc/html/index.html) は以下のような `BOOST_STATIC_ASSERT` マクロを提供しており、
`static_assert` の診断メッセージを省略できた:
```cpp
#define BOOST_STATIC_ASSERT(B) static_assert(B, #B)
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>bernoulli_distribution -- Merge pull request #1666 from cpprefjp/improve_outer_link_check</title>
<link href="https://cpprefjp.github.io/reference/random/bernoulli_distribution.html"/>
<id>c53509c24c50a7aab31ab9138d8fe1b56a4de0f1:reference/random/bernoulli_distribution.md</id>
<updated>2026-07-06T15:06:19+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/random/bernoulli_distribution.md b/reference/random/bernoulli_distribution.md
index 0571fa9f5..d84492a77 100644
--- a/reference/random/bernoulli_distribution.md
+++ b/reference/random/bernoulli_distribution.md
@@ -118,4 +118,4 @@ int main()
## 参照
- [ベルヌーイ分布 - Wikipedia](https://ja.wikipedia.org/wiki/ベルヌーイ分布)
-- [ベルヌーイ分布(Bernoulli distribution) - NtRand](http://www.ntrand.com/jp/bernoulli-distribution/)
+- [ベルヌーイ分布(Bernoulli distribution) - NtRand](https://www.ntrand.com/ja/docs/gallery-of-distributions/bernoulli-distribution)
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>cauchy_distribution -- Merge pull request #1666 from cpprefjp/improve_outer_link_check</title>
<link href="https://cpprefjp.github.io/reference/random/cauchy_distribution.html"/>
<id>c53509c24c50a7aab31ab9138d8fe1b56a4de0f1:reference/random/cauchy_distribution.md</id>
<updated>2026-07-06T15:06:19+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/random/cauchy_distribution.md b/reference/random/cauchy_distribution.md
index 094c21117..afc7a2d05 100644
--- a/reference/random/cauchy_distribution.md
+++ b/reference/random/cauchy_distribution.md
@@ -125,4 +125,4 @@ int main()
### 参考
- [コーシー分布 - Wikipedia](https://ja.wikipedia.org/wiki/%E3%82%B3%E3%83%BC%E3%82%B7%E3%83%BC%E5%88%86%E5%B8%83)
-- [コーシー分布 - NtRand](http://www.ntrand.com/jp/cauchy-distribution/)
+- [コーシー分布 - NtRand](https://www.ntrand.com/ja/docs/gallery-of-distributions/cauchy-distribution)
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>exponential_distribution -- Merge pull request #1666 from cpprefjp/improve_outer_link_check</title>
<link href="https://cpprefjp.github.io/reference/random/exponential_distribution.html"/>
<id>c53509c24c50a7aab31ab9138d8fe1b56a4de0f1:reference/random/exponential_distribution.md</id>
<updated>2026-07-06T15:06:19+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/random/exponential_distribution.md b/reference/random/exponential_distribution.md
index b8f051c5c..74238337e 100644
--- a/reference/random/exponential_distribution.md
+++ b/reference/random/exponential_distribution.md
@@ -188,6 +188,6 @@ Phone call after 2.60918 minute wait
### 参考
- [指数分布 - Wikipedia](https://ja.wikipedia.org/wiki/指数分布)
-- [指数分布 - NtRand](http://www.ntrand.com/jp/exponential-distribution/)
+- [指数分布 - NtRand](https://www.ntrand.com/ja/docs/gallery-of-distributions/exponential-distribution)
- [指数分布 - 統計学自習ノート](https://web.archive.org/web/20241204102039/http://aoki2.si.gunma-u.ac.jp/lecture/Bunpu/exponential.html)
- [指数分布とポアソン分布のいけない関係](http://www.slideshare.net/teramonagi/ss-11296227)
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>extreme_value_distribution -- Merge pull request #1666 from cpprefjp/improve_outer_link_check</title>
<link href="https://cpprefjp.github.io/reference/random/extreme_value_distribution.html"/>
<id>c53509c24c50a7aab31ab9138d8fe1b56a4de0f1:reference/random/extreme_value_distribution.md</id>
<updated>2026-07-06T15:06:19+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/random/extreme_value_distribution.md b/reference/random/extreme_value_distribution.md
index d2a843602..023d00d24 100644
--- a/reference/random/extreme_value_distribution.md
+++ b/reference/random/extreme_value_distribution.md
@@ -128,4 +128,3 @@ int main()
### 参考
- [極値分布](https://ja.wikipedia.org/wiki/極値分布)
- [一般化極値分布 - MATLAB &amp; Simulink - MathWorks 日本](https://jp.mathworks.com/help/stats/generalized-extreme-value-distribution.html)
-- [極値分布とその応用に関する研究](http://www.seto.nanzan-u.ac.jp/msie/gr-thesis/ms/2005/osaki/02mm042.pdf)
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>lognormal_distribution -- Merge pull request #1666 from cpprefjp/improve_outer_link_check</title>
<link href="https://cpprefjp.github.io/reference/random/lognormal_distribution.html"/>
<id>c53509c24c50a7aab31ab9138d8fe1b56a4de0f1:reference/random/lognormal_distribution.md</id>
<updated>2026-07-06T15:06:19+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/random/lognormal_distribution.md b/reference/random/lognormal_distribution.md
index c114f3cf5..7559dcd88 100644
--- a/reference/random/lognormal_distribution.md
+++ b/reference/random/lognormal_distribution.md
@@ -125,5 +125,5 @@ int main()
### 参考
- [対数正規分布 - Wikipedia](https://ja.wikipedia.org/wiki/%E5%AF%BE%E6%95%B0%E6%AD%A3%E8%A6%8F%E5%88%86%E5%B8%83)
-- [対数正規分布 - NtRand](http://www.ntrand.com/jp/log-normal-distribution/)
+- [対数正規分布 - NtRand](https://www.ntrand.com/ja/docs/gallery-of-distributions/log-normal-distribution)
- [対数正規分布の仕組み - 小人さんの妄想](http://d.hatena.ne.jp/rikunora/20100418/p1)
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>poisson_distribution -- Merge pull request #1666 from cpprefjp/improve_outer_link_check</title>
<link href="https://cpprefjp.github.io/reference/random/poisson_distribution.html"/>
<id>c53509c24c50a7aab31ab9138d8fe1b56a4de0f1:reference/random/poisson_distribution.md</id>
<updated>2026-07-06T15:06:19+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/random/poisson_distribution.md b/reference/random/poisson_distribution.md
index 345677858..f462e4331 100644
--- a/reference/random/poisson_distribution.md
+++ b/reference/random/poisson_distribution.md
@@ -167,7 +167,7 @@ Month 12: 1 earthquake(s)
### 参考
- [ポワソン分布 - Wikipedia](https://ja.wikipedia.org/wiki/ポアソン分布)
- [ポアソン分布 - 統計・データ解析](https://okumuralab.org/~okumura/stat/poisson.html)
-- [ポアソン分布 - NtRand](http://www.ntrand.com/jp/poisson-distribution/)
+- [ポアソン分布 - NtRand](https://www.ntrand.com/ja/docs/gallery-of-distributions/poisson-distribution)
- [[データ分析]ポアソン分布 ~ 100年に1人の天才は何人現れる?:やさしい確率分布 - @IT](https://atmarkit.itmedia.co.jp/ait/articles/2407/11/news002.html)
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
<entry>
<title>weibull_distribution -- Merge pull request #1666 from cpprefjp/improve_outer_link_check</title>
<link href="https://cpprefjp.github.io/reference/random/weibull_distribution.html"/>
<id>c53509c24c50a7aab31ab9138d8fe1b56a4de0f1:reference/random/weibull_distribution.md</id>
<updated>2026-07-06T15:06:19+09:00</updated>
<summary type="html"><pre><code>diff --git a/reference/random/weibull_distribution.md b/reference/random/weibull_distribution.md
index b47b88665..9c83b3bfa 100644
--- a/reference/random/weibull_distribution.md
+++ b/reference/random/weibull_distribution.md
@@ -129,5 +129,5 @@ int main()
### 参考
- [ワイブル分布 - Wikipedia](https://ja.wikipedia.org/wiki/ワイブル分布)
-- [ワイブル分布 = NtRand](http://www.ntrand.com/jp/weibull-distribution/)
+- [ワイブル分布 = NtRand](https://www.ntrand.com/ja/docs/gallery-of-distributions/weibull-distribution)
- [疲労や破壊現象とワイブル分布](http://web.archive.org/web/20220706102605/http://www.mogami.com/notes/weibull.html)
</code></pre></summary>
<author>
<name>Akira Takahashi</name>
<email>faithandbrave@gmail.com</email>
</author>
</entry>
</feed>