|
68 | 68 |
|
69 | 69 | </head> |
70 | 70 | <body> |
71 | | -<header data-kunai-mdinfo="{"meta": {"header": ["queue"], "namespace": ["std"], "class": ["priority_queue"], "cpp": ["cpp17"]}, "sources": [{"id": "64a1536910cf1d3dd82c24b374b96c180d93a300", "source": "#include <queue>\n#include <type_traits>\n\nint main()\n{\n std::vector v = {1, 2, 3};\n\n // (1)\n // \u6bd4\u8f03\u95a2\u6570\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3001\u5143\u3068\u306a\u308b\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u63a8\u8ad6\n std::priority_queue pque1 {std::less<int>(), v};\n static_assert(std::is_same_v<decltype(pque1), std::priority_queue<int>>);\n\n // (2)\n // \u30a4\u30c6\u30ec\u30fc\u30bf\u7bc4\u56f2\u304b\u3089\u63a8\u8ad6 (\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u4f7f\u7528\u3059\u308b)\n std::priority_queue pque2 {v.begin(), v.end()};\n static_assert(std::is_same_v<decltype(pque2), std::priority_queue<int>>);\n}\n"}], "page_id": ["reference", "queue", "priority_queue", "op_deduction_guide"]}"> |
| 71 | +<header data-kunai-mdinfo="{"meta": {"header": ["queue"], "namespace": ["std"], "class": ["priority_queue"], "cpp": ["cpp17"]}, "sources": [{"id": "f72138dae3e7ac13e99fc4e74d24aa9d58632f21", "source": "#include <queue>\n#include <type_traits>\n#include <vector>\n\nint main()\n{\n std::vector v = {1, 2, 3};\n\n // (1)\n // \u6bd4\u8f03\u95a2\u6570\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3001\u5143\u3068\u306a\u308b\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u63a8\u8ad6\n std::priority_queue pque1 {std::less<int>(), v};\n static_assert(std::is_same_v<decltype(pque1), std::priority_queue<int>>);\n\n // (2)\n // \u30a4\u30c6\u30ec\u30fc\u30bf\u7bc4\u56f2\u304b\u3089\u63a8\u8ad6 (\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u4f7f\u7528\u3059\u308b)\n std::priority_queue pque2 {v.begin(), v.end()};\n static_assert(std::is_same_v<decltype(pque2), std::priority_queue<int>>);\n}\n"}], "page_id": ["reference", "queue", "priority_queue", "op_deduction_guide"]}"> |
72 | 72 | <nav class="navbar navbar-default" role="navigation"> |
73 | 73 | <div class="container-fluid"> |
74 | 74 | <div class="navbar-header"> |
|
201 | 201 | <p class="text-right"><small> |
202 | 202 | 最終更新日時: |
203 | 203 | <time itemprop="datePublished" class="js-local-time" |
204 | | - datetime="2026-02-17T12:19:01+09:00"> |
205 | | - 2026年02月17日 12時19分01秒 (JST) |
| 204 | + datetime="2026-07-22T13:44:46+09:00"> |
| 205 | + 2026年07月22日 13時44分46秒 (JST) |
206 | 206 | </time> |
207 | 207 | <br/> |
208 | 208 | <span itemprop="author" itemscope itemtype="http://schema.org/Person"> |
209 | | - <span itemprop="name">Akira Takahashi</span> |
| 209 | + <span itemprop="name">rotarymars</span> |
210 | 210 | </span> |
211 | 211 | が更新 |
212 | 212 | </small></p> |
@@ -325,8 +325,9 @@ <h2><a class="cpprefjp-defined-word" data-desc="関数等の意味論を構成 |
325 | 325 | <li><code>Container</code>と<code>Allocator</code>の両方のテンプレートパラメータをもち、<code><a href="../../memory/uses_allocator.html">uses_allocator_v</a><Container, Allocator></code>が<code>false</code>の場合</li> |
326 | 326 | </ul> |
327 | 327 | <h2>例</h2> |
328 | | -<p><div class="yata" id="64a1536910cf1d3dd82c24b374b96c180d93a300"><div class="codehilite"><pre><span></span><code><span class="cp">#include <a href="../../queue.html"><queue></a></span> |
| 328 | +<p><div class="yata" id="f72138dae3e7ac13e99fc4e74d24aa9d58632f21"><div class="codehilite"><pre><span></span><code><span class="cp">#include <a href="../../queue.html"><queue></a></span> |
329 | 329 | <span class="cp">#include <a href="../../type_traits.html"><type_traits></a></span> |
| 330 | +<span class="cp">#include <a href="../../vector.html"><vector></a></span> |
330 | 331 |
|
331 | 332 | <span class="kt">int</span><span class="w"> </span><span class="nf">main</span><span class="p">()</span> |
332 | 333 | <span class="p">{</span> |
|
0 commit comments