Skip to content

Commit d17a23c

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent 9e59edd commit d17a23c

File tree

4 files changed

+66
-53
lines changed

4 files changed

+66
-53
lines changed

reference/algorithm/ranges_partition.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@
188188

189189
<p class="text-right"><small>
190190
最終更新日時(UTC):
191-
<span itemprop="datePublished" content="2024-06-11T13:45:38">
192-
2024年06月11日 13時45分38秒
191+
<span itemprop="datePublished" content="2025-06-27T03:45:39">
192+
2025年06月27日 03時45分39秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -249,8 +249,7 @@ <h2><a class="cpprefjp-defined-word" data-desc="関数呼び出し式の評価
249249
<h2><a class="cpprefjp-defined-word" data-desc="関数等の意味論を構成する要素の1つ。Complexity。関数が使うアルゴリズムの空間計算量・時間計算量">計算量</a></h2>
250250
<p><code>N = last - first</code>として</p>
251251
<ul>
252-
<li>(1) : <code>I</code><code><a href="../iterator/bidirectional_iterator.html">bidirectional_iterator</a></code>のモデルとなる場合、最大で <code>N / 2</code> 回 swap され、そうでない場合、最大で <code>N</code> 回 swap される。それに加えて、正確に <code>N</code> 回だけ<a class="cpprefjp-defined-word" data-desc="boolを返す関数・関数オブジェクト。predicate">述語</a>が適用される</li>
253-
<li>(2) : O(NlogN) 回の swap に加え、<a class="cpprefjp-defined-word" data-desc="boolを返す関数・関数オブジェクト。predicate">述語</a>が O(N) 回適用される</li>
252+
<li>(1), (2) : <code>I</code><code><a href="../iterator/bidirectional_iterator.html">bidirectional_iterator</a></code>のモデルとなる場合、最大で <code>N / 2</code> 回 swap され、そうでない場合、最大で <code>N</code> 回 swap される。それに加えて、正確に <code>N</code> 回だけ<a class="cpprefjp-defined-word" data-desc="boolを返す関数・関数オブジェクト。predicate">述語</a>が適用される</li>
254253
</ul>
255254
<h2></h2>
256255
<p><div class="yata" id="23dca1bb072214f502f0fad253138c27ba91f9be"><div class="codehilite"><pre><span></span><code><span class="cp">#include</span> <span class="cpf"><a href="../iostream.html">&lt;iostream&gt;</a></span><span class="cp"></span>

reference/algorithm/ranges_stable_partition.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@
188188

189189
<p class="text-right"><small>
190190
最終更新日時(UTC):
191-
<span itemprop="datePublished" content="2024-08-02T04:41:43">
192-
2024年08月02日 04時41分43秒
191+
<span itemprop="datePublished" content="2025-06-27T03:45:39">
192+
2025年06月27日 03時45分39秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
@@ -269,8 +269,7 @@ <h2><a class="cpprefjp-defined-word" data-desc="関数呼び出し式の評価
269269
<h2><a class="cpprefjp-defined-word" data-desc="関数等の意味論を構成する要素の1つ。Complexity。関数が使うアルゴリズムの空間計算量・時間計算量">計算量</a></h2>
270270
<p><code>N = last - first</code>として説明する。</p>
271271
<ul>
272-
<li>(1) : 最大でN log N回 swap が行われるが、余分なメモリを使って構わないのであれば線形回数の swap になる。それに加えて、正確にN回だけ<a class="cpprefjp-defined-word" data-desc="boolを返す関数・関数オブジェクト。predicate">述語</a>が適用される</li>
273-
<li>(2) : O(N log N) 回の swap に加え、<a class="cpprefjp-defined-word" data-desc="boolを返す関数・関数オブジェクト。predicate">述語</a>が O(N) 回適用される</li>
272+
<li>(1), (2) : 最大でN log N回 swap が行われるが、余分なメモリを使って構わないのであれば線形回数の swap になる。それに加えて、正確にN回だけ<a class="cpprefjp-defined-word" data-desc="boolを返す関数・関数オブジェクト。predicate">述語</a>が適用される</li>
274273
</ul>
275274
<h2></h2>
276275
<p><div class="yata" id="dde750f42464a4da2dbd906a75bdfb36c0afb72f"><div class="codehilite"><pre><span></span><code><span class="cp">#include</span> <span class="cpf"><a href="../iostream.html">&lt;iostream&gt;</a></span><span class="cp"></span>

rss.xml

Lines changed: 58 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,66 @@
22
<feed xmlns="http://www.w3.org/2005/Atom">
33
<title>cpprefjp - C++日本語リファレンス</title>
44
<link href="https://cpprefjp.github.io" />
5-
<updated>2025-06-26T14:54:53.635313</updated>
6-
<id>f4b30cd5-62d3-4b8c-b969-5aca88152b15</id>
5+
<updated>2025-06-27T03:49:36.242037</updated>
6+
<id>b645cbb1-b3f3-4e7b-8406-adf2b88f7827</id>
77

88

9+
<entry>
10+
<title>partition -- ranges::(stable_)partition : 計算量のコピペミスで実行ポリシーの計算量が記載されてしまっていた問題を修正 #1458</title>
11+
<link href="https://cpprefjp.github.io/reference/algorithm/ranges_partition.html"/>
12+
<id>30247c1fff6c4f6389bd61012b23f209308dd11d:reference/algorithm/ranges_partition.md</id>
13+
<updated>2025-06-27T12:45:39+09:00</updated>
14+
15+
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/algorithm/ranges_partition.md b/reference/algorithm/ranges_partition.md
16+
index 32aa4228c..0a9b6ad02 100644
17+
--- a/reference/algorithm/ranges_partition.md
18+
+++ b/reference/algorithm/ranges_partition.md
19+
@@ -58,8 +58,7 @@ namespace std::ranges {
20+
21+
`N = last - first`として
22+
23+
-- (1) : `I` が [`bidirectional_iterator`](/reference/iterator/bidirectional_iterator.md)のモデルとなる場合、最大で `N / 2` 回 swap され、そうでない場合、最大で `N` 回 swap される。それに加えて、正確に `N` 回だけ述語が適用される
24+
-- (2) : O(NlogN) 回の swap に加え、述語が O(N) 回適用される
25+
+- (1), (2) : `I` が [`bidirectional_iterator`](/reference/iterator/bidirectional_iterator.md)のモデルとなる場合、最大で `N / 2` 回 swap され、そうでない場合、最大で `N` 回 swap される。それに加えて、正確に `N` 回だけ述語が適用される
26+
27+
28+
## 例
29+
&lt;/code&gt;&lt;/pre&gt;</summary>
30+
31+
<author>
32+
<name>Akira Takahashi</name>
33+
<email>[email protected]</email>
34+
</author>
35+
</entry>
36+
37+
<entry>
38+
<title>stable_partition -- ranges::(stable_)partition : 計算量のコピペミスで実行ポリシーの計算量が記載されてしまっていた問題を修正 #1458</title>
39+
<link href="https://cpprefjp.github.io/reference/algorithm/ranges_stable_partition.html"/>
40+
<id>30247c1fff6c4f6389bd61012b23f209308dd11d:reference/algorithm/ranges_stable_partition.md</id>
41+
<updated>2025-06-27T12:45:39+09:00</updated>
42+
43+
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/algorithm/ranges_stable_partition.md b/reference/algorithm/ranges_stable_partition.md
44+
index 5fd20f295..a15e99860 100644
45+
--- a/reference/algorithm/ranges_stable_partition.md
46+
+++ b/reference/algorithm/ranges_stable_partition.md
47+
@@ -79,8 +79,7 @@ namespace std::ranges {
48+
## 計算量
49+
`N = last - first`として説明する。
50+
51+
-- (1) : 最大でN log N回 swap が行われるが、余分なメモリを使って構わないのであれば線形回数の swap になる。それに加えて、正確にN回だけ述語が適用される
52+
-- (2) : O(N log N) 回の swap に加え、述語が O(N) 回適用される
53+
+- (1), (2) : 最大でN log N回 swap が行われるが、余分なメモリを使って構わないのであれば線形回数の swap になる。それに加えて、正確にN回だけ述語が適用される
54+
55+
56+
## 例
57+
&lt;/code&gt;&lt;/pre&gt;</summary>
58+
59+
<author>
60+
<name>Akira Takahashi</name>
61+
<email>[email protected]</email>
62+
</author>
63+
</entry>
64+
965
<entry>
1066
<title>format -- Typoを修正</title>
1167
<link href="https://cpprefjp.github.io/reference/chrono/format.html"/>
@@ -5076,47 +5132,6 @@ index 56c2e0630..3da007b87 100644
50765132

50775133

50785134
## 参照
5079-
&lt;/code&gt;&lt;/pre&gt;</summary>
5080-
5081-
<author>
5082-
<name>Raclamusi</name>
5083-
<email>[email protected]</email>
5084-
</author>
5085-
</entry>
5086-
5087-
<entry>
5088-
<title>構造化束縛でパックを導入できるようにする [P1061R10] -- コード例のエラーを修正 #1456</title>
5089-
<link href="https://cpprefjp.github.io/lang/cpp26/structured_bindings_can_introduce_a_pack.html"/>
5090-
<id>22f113ec79b132299ea4ef236affc14c0adc201d:lang/cpp26/structured_bindings_can_introduce_a_pack.md</id>
5091-
<updated>2025-06-24T11:47:43+09:00</updated>
5092-
5093-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/lang/cpp26/structured_bindings_can_introduce_a_pack.md b/lang/cpp26/structured_bindings_can_introduce_a_pack.md
5094-
index 5b9018db0..f6debe55b 100644
5095-
--- a/lang/cpp26/structured_bindings_can_introduce_a_pack.md
5096-
+++ b/lang/cpp26/structured_bindings_can_introduce_a_pack.md
5097-
@@ -53,14 +53,21 @@ constexpr decltype(auto) apply(F &amp;amp;&amp;amp;f, Tuple &amp;amp;&amp;amp;t)
5098-
C++26での実装:
5099-
5100-
```cpp
5101-
+namespace detail {
5102-
+ template &amp;lt;class A, class B&amp;gt;
5103-
+ using override_ref = std::conditional_t&amp;lt;std::is_rvalue_reference_v&amp;lt;A&amp;amp;&amp;amp;&amp;gt;, B&amp;amp;&amp;amp;, B&amp;amp;&amp;gt;;
5104-
+}
5105-
+
5106-
template &amp;lt;class F, class Tuple&amp;gt;
5107-
constexpr decltype(auto) apply(F &amp;amp;&amp;amp;f, Tuple &amp;amp;&amp;amp;t)
5108-
{
5109-
auto&amp;amp;&amp;amp; [...elems] = t;
5110-
return std::invoke(std::forward&amp;lt;F&amp;gt;(f),
5111-
- std::forward_like&amp;lt;Tuple, decltype(elems)&amp;gt;(elems)...);
5112-
+ static_cast&amp;lt;detail::override_ref&amp;lt;Tuple, decltype(elems)&amp;gt;&amp;gt;(elems)...);
5113-
}
5114-
```
5115-
+* std::conditional_t[link /reference/type_traits/conditional.md]
5116-
+* std::is_rvalue_reference_v[link /reference/type_traits/is_rvalue_reference.md]
5117-
* std::invoke[link /reference/functional/invoke.md]
5118-
5119-
51205135
&lt;/code&gt;&lt;/pre&gt;</summary>
51215136

51225137
<author>

sitemap.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36284,7 +36284,7 @@
3628436284

3628536285
<url>
3628636286
<loc>https://cpprefjp.github.io/reference/algorithm/ranges_stable_partition.html</loc>
36287-
<lastmod>2025-04-03T12:32:11+09:00</lastmod>
36287+
<lastmod>2025-06-27T12:45:39+09:00</lastmod>
3628836288
<changefreq>daily</changefreq>
3628936289
<priority>0.7</priority>
3629036290
</url>
@@ -37075,7 +37075,7 @@
3707537075

3707637076
<url>
3707737077
<loc>https://cpprefjp.github.io/reference/algorithm/ranges_partition.html</loc>
37078-
<lastmod>2025-04-03T12:32:11+09:00</lastmod>
37078+
<lastmod>2025-06-27T12:45:39+09:00</lastmod>
3707937079
<changefreq>daily</changefreq>
3708037080
<priority>0.7</priority>
3708137081
</url>

0 commit comments

Comments
 (0)