Skip to content

Commit 5170ece

Browse files
author
cpprefjp-autoupdate
committed
update automatically
1 parent ccfff8a commit 5170ece

File tree

3 files changed

+40
-277
lines changed

3 files changed

+40
-277
lines changed

lang/cpp11/range_based_for.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,12 @@
188188

189189
<p class="text-right"><small>
190190
最終更新日時(UTC):
191-
<span itemprop="datePublished" content="2024-06-14T05:17:35">
192-
2024年06月14日 05時17分35秒
191+
<span itemprop="datePublished" content="2024-06-15T12:35:49">
192+
2024年06月15日 12時35分49秒
193193
</span>
194194
<br/>
195195
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
196-
<span itemprop="name">Akira Takahashi</span>
196+
<span itemprop="name">yoh</span>
197197
</span>
198198
が更新
199199
</small></p>
@@ -245,17 +245,17 @@ <h1 itemprop="name"><span class="token">範囲for文 [N2930]</span><span class="
245245
</thead>
246246
<tbody>
247247
<tr>
248-
<td>const auto&amp; e</td>
248+
<td><code>const auto&amp; e</code></td>
249249
<td>No</td>
250250
<td>No</td>
251251
</tr>
252252
<tr>
253-
<td>auto&amp; e</td>
253+
<td><code>auto&amp; e</code></td>
254254
<td>Yes</td>
255255
<td>Yes</td>
256256
</tr>
257257
<tr>
258-
<td>auto e</td>
258+
<td><code>auto e</code></td>
259259
<td>Yes</td>
260260
<td>No</td>
261261
</tr>

rss.xml

Lines changed: 33 additions & 270 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,41 @@
22
<feed xmlns="http://www.w3.org/2005/Atom">
33
<title>cpprefjp - C++日本語リファレンス</title>
44
<link href="https://cpprefjp.github.io" />
5-
<updated>2024-06-15T08:41:40.743641</updated>
6-
<id>dbcc51c6-0943-4bfb-80c5-991563d0d4dd</id>
5+
<updated>2024-06-15T12:38:46.018243</updated>
6+
<id>8d85e1f4-e29f-43e5-8955-5ee8a21232a6</id>
77

88

9+
<entry>
10+
<title>範囲for文 [N2930] -- cpp11/range_based_for: markup code</title>
11+
<link href="https://cpprefjp.github.io/lang/cpp11/range_based_for.html"/>
12+
<id>5be9a45de2f2cb0015415120583a579005a96f1e:lang/cpp11/range_based_for.md</id>
13+
<updated>2024-06-15T21:35:49+09:00</updated>
14+
15+
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/lang/cpp11/range_based_for.md b/lang/cpp11/range_based_for.md
16+
index 8c80c934b..33a5db868 100644
17+
--- a/lang/cpp11/range_based_for.md
18+
+++ b/lang/cpp11/range_based_for.md
19+
@@ -34,9 +34,9 @@ for (const auto&amp;amp; e : v) {
20+
21+
| 変数宣言 | e を変更可能か? | コンテナ内の要素を変更可能か? |
22+
|-----------------|------------------|--------------------------------|
23+
-| const auto&amp;amp; e | No | No |
24+
-| auto&amp;amp; e | Yes | Yes |
25+
-| auto e | Yes | No |
26+
+| `const auto&amp;amp; e` | No | No |
27+
+| `auto&amp;amp; e` | Yes | Yes |
28+
+| `auto e` | Yes | No |
29+
30+
[auto]: /lang/cpp11/auto.md
31+
32+
&lt;/code&gt;&lt;/pre&gt;</summary>
33+
34+
<author>
35+
<name>yoh</name>
36+
<email>[email protected]</email>
37+
</author>
38+
</entry>
39+
940
<entry>
1041
<title>契約に基づくプログラミング -- Update contract-based_programming.md</title>
1142
<link href="https://cpprefjp.github.io/lang/future/contract-based_programming.html"/>
@@ -12118,272 +12149,4 @@ index e05ce729d..06e1dadb8 100644
1211812149
</author>
1211912150
</entry>
1212012151

12121-
<entry>
12122-
<title>add -- linalg : addを追加(#1233).</title>
12123-
<link href="https://cpprefjp.github.io/reference/linalg/add.html"/>
12124-
<id>439aededa674eeece8990ecdc8f785264ed6830b:reference/linalg/add.md</id>
12125-
<updated>2024-06-13T21:47:23+09:00</updated>
12126-
12127-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/linalg/add.md b/reference/linalg/add.md
12128-
new file mode 100644
12129-
index 000000000..fd21543da
12130-
--- /dev/null
12131-
+++ b/reference/linalg/add.md
12132-
@@ -0,0 +1,96 @@
12133-
+# add
12134-
+
12135-
+* [mathjax enable]
12136-
+* linalg[meta header]
12137-
+* function template[meta id-type]
12138-
+* std::linalg[meta namespace]
12139-
+* cpp26[meta cpp]
12140-
+
12141-
+
12142-
+```cpp
12143-
+namespace std::linalg {
12144-
+ template&amp;lt;in-object InObj1,
12145-
+ in-object InObj2,
12146-
+ out-object OutObj&amp;gt;
12147-
+ void add(InObj1 x,
12148-
+ InObj2 y,
12149-
+ OutObj z); // (1)
12150-
+
12151-
+ template&amp;lt;class ExecutionPolicy,
12152-
+ in-object InObj1,
12153-
+ in-object InObj2,
12154-
+ out-object OutObj&amp;gt;
12155-
+ void add(ExecutionPolicy&amp;amp;&amp;amp; exec,
12156-
+ InObj1 x,
12157-
+ InObj2 y,
12158-
+ OutObj z); // (2)
12159-
+}
12160-
+```
12161-
+
12162-
+
12163-
+## 概要
12164-
+同じサイズの行列またはベクトルの`x`と`y`、`z`に対して、$x + y$ を`z`に代入する:
12165-
+
12166-
+$$
12167-
+z \leftarrow x + y
12168-
+$$
12169-
+
12170-
+
12171-
+## テンプレートパラメータ制約
12172-
+`x`と`y`、`z`の次元が全て等しくなければならない。
12173-
+- `x.rank() == y.rank() &amp;amp;&amp;amp; y.rank() == z.rank()`
12174-
+
12175-
+
12176-
+## 適格要件
12177-
+行列またはベクトルの`x`、`y`、`z`の各次元の静的要素数が同じであること。
12178-
+
12179-
+- [`possibly-addable`](possibly-addable.md)`&amp;lt;InObj1, InObj2, OutObj&amp;gt;() == true`
12180-
+
12181-
+
12182-
+## 事前条件
12183-
+行列またはベクトルの`x`、`y`、`z`の各次元が同じであること。
12184-
+
12185-
+- [`addable`](addable.md)`(x, y, z) == true`
12186-
+
12187-
+
12188-
+## 効果
12189-
+$x + y$ を`z`に代入する。
12190-
+
12191-
+- (1): 逐次実行する。
12192-
+- (2): 指定された実行ポリシーに応じて実行する。
12193-
+
12194-
+
12195-
+## 戻り値
12196-
+なし
12197-
+
12198-
+
12199-
+## 備考
12200-
+`z`を`x`または`y`としてもよい。
12201-
+
12202-
+
12203-
+## 例
12204-
+
12205-
+
12206-
+### 出力
12207-
+
12208-
+
12209-
+## バージョン
12210-
+### 言語
12211-
+- C++26
12212-
+
12213-
+### 処理系
12214-
+- [Clang](/implementation.md#clang): ??
12215-
+- [GCC](/implementation.md#gcc): ??
12216-
+- [ICC](/implementation.md#icc): ??
12217-
+- [Visual C++](/implementation.md#visual_cpp): ??
12218-
+
12219-
+
12220-
+## 関連項目
12221-
+- [`execution`](/reference/execution.md)
12222-
+- [`mdspan`](/reference/mdspan.md)
12223-
+
12224-
+
12225-
+## 参照
12226-
+- [P0788R3 Standard Library Specification in a Concepts and Contracts World](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0788r3.pdf)
12227-
+- [`LAPACK: caxpy`](https://netlib.org/lapack/explore-html/d5/d4b/group__axpy_ga0b7bac1f4d42514074a48f14f5f9caa0.html#ga0b7bac1f4d42514074a48f14f5f9caa0)
12228-
+
12229-
&lt;/code&gt;&lt;/pre&gt;</summary>
12230-
12231-
<author>
12232-
<name>Yuya Asano</name>
12233-
<email>[email protected]</email>
12234-
</author>
12235-
</entry>
12236-
12237-
<entry>
12238-
<title>addable -- linalg : addを追加(#1233).</title>
12239-
<link href="https://cpprefjp.github.io/reference/linalg/addable.html"/>
12240-
<id>439aededa674eeece8990ecdc8f785264ed6830b:reference/linalg/addable.md</id>
12241-
<updated>2024-06-13T21:47:23+09:00</updated>
12242-
12243-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/linalg/addable.md b/reference/linalg/addable.md
12244-
new file mode 100644
12245-
index 000000000..1f6e46f79
12246-
--- /dev/null
12247-
+++ b/reference/linalg/addable.md
12248-
@@ -0,0 +1,57 @@
12249-
+# addable
12250-
+
12251-
+* linalg[meta header]
12252-
+* function template[meta id-type]
12253-
+* std::linalg[meta namespace]
12254-
+* cpp26[meta cpp]
12255-
+
12256-
+
12257-
+```cpp
12258-
+namespace std::linalg {
12259-
+constexpr bool addable(
12260-
+ const in-vector auto&amp;amp; in1,
12261-
+ const in-vector auto&amp;amp; in2,
12262-
+ const in-vector auto&amp;amp; out)
12263-
+{
12264-
+ return out.extent(0) == in1.extent(0) &amp;amp;&amp;amp;
12265-
+ out.extent(0) == in2.extent(0);
12266-
+} // (1)
12267-
+
12268-
+constexpr bool addable(
12269-
+ const in-matrix auto&amp;amp; in1,
12270-
+ const in-matrix auto&amp;amp; in2,
12271-
+ const in-matrix auto&amp;amp; out)
12272-
+{
12273-
+ return out.extent(0) == in1.extent(0) &amp;amp;&amp;amp;
12274-
+ out.extent(1) == in1.extent(1) &amp;amp;&amp;amp;
12275-
+ out.extent(0) == in2.extent(0) &amp;amp;&amp;amp;
12276-
+ out.extent(1) == in2.extent(1);
12277-
+} // (2)
12278-
+}
12279-
+```
12280-
+
12281-
+
12282-
+## 概要
12283-
+テンプレートパラメータに指定されたベクトルまたは行列の次元が同じかどうかを判定する、説明専用の関数である。
12284-
+
12285-
+
12286-
+## 戻り値
12287-
+`In1`、`In2`、`Out`の各次元が同じ場合`true`を返す。そうでない場合は、`false`を返す。
12288-
+
12289-
+- (1): ベクトル
12290-
+- (2): 行列
12291-
+
12292-
+
12293-
+## バージョン
12294-
+### 言語
12295-
+- C++26
12296-
+
12297-
+
12298-
+## 関連項目
12299-
+- [`mdspan`](/reference/mdspan.md)
12300-
+
12301-
+
12302-
+## 参照
12303-
+- [P1673R13 A free function linear algebra interface based on the BLAS](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p1673r13.html)
12304-
+
12305-
+
12306-
&lt;/code&gt;&lt;/pre&gt;</summary>
12307-
12308-
<author>
12309-
<name>Yuya Asano</name>
12310-
<email>[email protected]</email>
12311-
</author>
12312-
</entry>
12313-
12314-
<entry>
12315-
<title>possibly-addable -- linalg : addを追加(#1233).</title>
12316-
<link href="https://cpprefjp.github.io/reference/linalg/possibly-addable.html"/>
12317-
<id>439aededa674eeece8990ecdc8f785264ed6830b:reference/linalg/possibly-addable.md</id>
12318-
<updated>2024-06-13T21:47:23+09:00</updated>
12319-
12320-
<summary type="html">&lt;pre&gt;&lt;code&gt;diff --git a/reference/linalg/possibly-addable.md b/reference/linalg/possibly-addable.md
12321-
new file mode 100644
12322-
index 000000000..3b34fa1dd
12323-
--- /dev/null
12324-
+++ b/reference/linalg/possibly-addable.md
12325-
@@ -0,0 +1,55 @@
12326-
+# possibly-addable
12327-
+
12328-
+* linalg[meta header]
12329-
+* function template[meta id-type]
12330-
+* std::linalg[meta namespace]
12331-
+* cpp26[meta cpp]
12332-
+
12333-
+
12334-
+```cpp
12335-
+namespace std::linalg {
12336-
+ template&amp;lt;in-vector In1, in-vector In2, in-vector Out&amp;gt;
12337-
+ constexpr bool possibly-addable()
12338-
+ {
12339-
+ return compatible-static-extents&amp;lt;Out, In1&amp;gt;(0, 0) &amp;amp;&amp;amp;
12340-
+ compatible-static-extents&amp;lt;Out, In2&amp;gt;(0, 0) &amp;amp;&amp;amp;
12341-
+ compatible-static-extents&amp;lt;In1, In2&amp;gt;(0, 0);
12342-
+ } // (1)
12343-
+
12344-
+ template&amp;lt;in-matrix In1, in-matrix In2, in-matrix Out&amp;gt;
12345-
+ constexpr bool possibly-addable()
12346-
+ {
12347-
+ return compatible-static-extents&amp;lt;Out, In1&amp;gt;(0, 0) &amp;amp;&amp;amp;
12348-
+ compatible-static-extents&amp;lt;Out, In1&amp;gt;(1, 1) &amp;amp;&amp;amp;
12349-
+ compatible-static-extents&amp;lt;Out, In2&amp;gt;(0, 0) &amp;amp;&amp;amp;
12350-
+ compatible-static-extents&amp;lt;Out, In2&amp;gt;(1, 1) &amp;amp;&amp;amp;
12351-
+ compatible-static-extents&amp;lt;In1, In2&amp;gt;(0, 0) &amp;amp;&amp;amp;
12352-
+ compatible-static-extents&amp;lt;In1, In2&amp;gt;(1, 1);
12353-
+ } // (2)
12354-
+}
12355-
+```
12356-
+
12357-
+
12358-
+## 概要
12359-
+テンプレートパラメータに指定されたベクトルまたは行列の次元が同じかどうかを静的要素数で判定する、説明専用の関数である。
12360-
+
12361-
+
12362-
+## 戻り値
12363-
+`In1`、`In2`、`Out`の各次元の静的要素数が同じ場合`true`を返す。そうでない場合は、`false`を返す。
12364-
+
12365-
+- (1): ベクトル
12366-
+- (2): 行列
12367-
+
12368-
+
12369-
+## バージョン
12370-
+### 言語
12371-
+- C++26
12372-
+
12373-
+
12374-
+## 関連項目
12375-
+- [`mdspan`](/reference/mdspan.md)
12376-
+
12377-
+
12378-
+## 参照
12379-
+- [P1673R13 A free function linear algebra interface based on the BLAS](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p1673r13.html)
12380-
+
12381-
&lt;/code&gt;&lt;/pre&gt;</summary>
12382-
12383-
<author>
12384-
<name>Yuya Asano</name>
12385-
<email>[email protected]</email>
12386-
</author>
12387-
</entry>
12388-
1238912152
</feed>

sitemap.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35045,7 +35045,7 @@
3504535045

3504635046
<url>
3504735047
<loc>https://cpprefjp.github.io/lang/cpp11/range_based_for.html</loc>
35048-
<lastmod>2024-06-14T14:18:50+09:00</lastmod>
35048+
<lastmod>2024-06-15T21:35:49+09:00</lastmod>
3504935049
<changefreq>daily</changefreq>
3505035050
<priority>0.7</priority>
3505135051
</url>

0 commit comments

Comments
 (0)