|
68 | 68 |
|
69 | 69 | </head> |
70 | 70 | <body> |
71 | | -<header data-kunai-mdinfo="{"meta": {"header": ["flat_map"], "namespace": ["std"], "class": ["flat_multimap"], "id-type": ["function"], "cpp": ["cpp23"]}, "sources": [{"id": "b476552663c47385b2964751a85a3ca40ea52014", "source": "#include <flat_map>\n#include <iostream>\n#include <string>\n#include <vector>\n#include <utility>\n\nvoid print(const std::flat_multimap<std::string, int>& fm)\n{\n std::cout << \"{\" << std::endl;\n for (const auto& kv: fm) {\n std::cout << \" \" << kv.first << \": \" << kv.second << \",\" << std::endl;\n }\n std::cout << \"}\" << std::endl;\n}\n\nint main()\n{\n std::initializer_list<std::pair<std::string, int>> elems = {{\"Alice\", 3}, {\"Bob\", 1}, {\"Carol\", 4}, {\"Alice\", 1}};\n\n std::flat_multimap<std::string, int> fm;\n fm = elems;\n\n print(fm);\n}\n"}], "page_id": ["reference", "flat_map", "flat_multimap", "op_assign"]}"> |
| 71 | +<header data-kunai-mdinfo="{"meta": {"header": ["flat_map"], "namespace": ["std"], "class": ["flat_multimap"], "id-type": ["function"], "cpp": ["cpp23"]}, "sources": [{"id": "d519943b3f18e2949d193142ced38c0b9cd09bfa", "source": "#include <flat_map>\n#include <iostream>\n#include <string>\n#include <utility>\n\nvoid print(const std::flat_multimap<std::string, int>& fm)\n{\n std::cout << \"{\" << std::endl;\n for (const auto& kv: fm) {\n std::cout << \" \" << kv.first << \": \" << kv.second << \",\" << std::endl;\n }\n std::cout << \"}\" << std::endl;\n}\n\nint main()\n{\n std::initializer_list<std::pair<std::string, int>> elems = {{\"Alice\", 3}, {\"Bob\", 1}, {\"Carol\", 4}, {\"Alice\", 1}};\n\n std::flat_multimap<std::string, int> fm;\n fm = elems;\n\n print(fm);\n}\n"}], "page_id": ["reference", "flat_map", "flat_multimap", "op_assign"]}"> |
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-07-22T16:08:23+09:00"> |
205 | | - 2026年07月22日 16時08分23秒 (JST) |
| 204 | + datetime="2026-08-02T13:51:47+09:00"> |
| 205 | + 2026年08月02日 13時51分47秒 (JST) |
206 | 206 | </time> |
207 | 207 | <br/> |
208 | 208 | <span itemprop="author" itemscope itemtype="http://schema.org/Person"> |
209 | | - <span itemprop="name">rotarymars</span> |
| 209 | + <span itemprop="name">suomesta</span> |
210 | 210 | </span> |
211 | 211 | が更新 |
212 | 212 | </small></p> |
@@ -264,10 +264,9 @@ <h2>備考</h2> |
264 | 264 | <li>引数の型が <code>const flat_multimap&</code> であるコピー代入演算子と、引数の型が <code>flat_multimap&&</code> であるムーブ代入演算子は、それぞれ自動生成される。</li> |
265 | 265 | </ul> |
266 | 266 | <h2>例</h2> |
267 | | -<p><div class="yata" id="b476552663c47385b2964751a85a3ca40ea52014"><div class="codehilite"><pre><span></span><code><span class="cp">#include <a href="../../flat_map.html"><flat_map></a></span> |
| 267 | +<p><div class="yata" id="d519943b3f18e2949d193142ced38c0b9cd09bfa"><div class="codehilite"><pre><span></span><code><span class="cp">#include <a href="../../flat_map.html"><flat_map></a></span> |
268 | 268 | <span class="cp">#include <a href="../../iostream.html"><iostream></a></span> |
269 | 269 | <span class="cp">#include <a href="../../string.html"><string></a></span> |
270 | | -<span class="cp">#include <a href="../../vector.html"><vector></a></span> |
271 | 270 | <span class="cp">#include <a href="../../utility.html"><utility></a></span> |
272 | 271 |
|
273 | 272 | <span class="kt">void</span><span class="w"> </span><span class="nf">print</span><span class="p">(</span><span class="k">const</span><span class="w"> </span><span class="n">std</span><span class="o">::</span><span class="n">flat_multimap</span><span class="o"><</span><span class="n"><a href="../../string/basic_string.html">std::string</a></span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="o">>&</span><span class="w"> </span><span class="n">fm</span><span class="p">)</span> |
|
0 commit comments