|
68 | 68 |
|
69 | 69 | </head> |
70 | 70 | <body> |
71 | | -<header data-kunai-mdinfo="{"meta": {"header": ["memory"], "namespace": ["std"], "id-type": ["concept"], "cpp": ["cpp20"]}, "sources": [{"id": "6e3483db1078518be108cc1a6fda0df857ae4375", "source": "#include <iostream>\n#include <concepts>\n#include <iterator>\n#include <memory>\n#include <vector>\n#include <forward_list>\n#include <list>\n\ntemplate <class I>\nconcept no_throw_input_iterator =\n std::input_iterator<I> &&\n std::is_lvalue_reference_v<std::iter_reference_t<I>> &&\n std::same_as<std::remove_cvref_t<std::iter_reference_t<I>>, std::iter_value_t<I>>;\n\ntemplate<class S, class I>\nconcept no_throw_sentinel = std::sentinel_for<S, I>;\n\ntemplate<class I>\nconcept no_throw_forward_iterator =\n no_throw_input_iterator <I> &&\n std::forward_iterator<I> &&\n no_throw_sentinel<I, I>;\n\ntemplate <no_throw_forward_iterator I>\nvoid f(const char* name) {\n std::cout << name << \" is no-throw-forward-iterator\" << std::endl;\n}\n\ntemplate<typename I>\nvoid f(const char* name) {\n std::cout << name << \" is not no-throw-forward-iterator\" << std::endl;\n}\n\nint main() {\n f<int*>(\"int*\");\n f<const int*>(\"const int*\");\n f<std::forward_list<int>::iterator>(\"std::forward_list<int>::iterator\");\n f<std::list<int>::iterator>(\"std::list<int>::iterator\");\n f<std::vector<int>::iterator>(\"std::vector<int>::iterator\");\n f<std::vector<bool>::iterator>(\"std::vector<bool>::iterator\");\n\n std::cout << \"\\n\";\n}\n"}], "page_id": ["reference", "memory", "no-throw-forward-iterator"]}"> |
| 71 | +<header data-kunai-mdinfo="{"meta": {"header": ["memory"], "namespace": ["std"], "id-type": ["concept"], "cpp": ["cpp20"]}, "sources": [{"id": "01a88f7dabe361fe1d22834eea4da59f1b5ba5e7", "source": "#include <iostream>\n#include <concepts>\n#include <iterator>\n#include <memory>\n#include <vector>\n#include <forward_list>\n#include <list>\n\ntemplate <class I>\nconcept no_throw_input_iterator =\n std::input_iterator<I> &&\n std::is_lvalue_reference_v<std::iter_reference_t<I>> &&\n std::same_as<std::remove_cvref_t<std::iter_reference_t<I>>, std::iter_value_t<I>>;\n\ntemplate<class S, class I>\nconcept no_throw_sentinel = std::sentinel_for<S, I>;\n\ntemplate<class I>\nconcept no_throw_forward_iterator =\n no_throw_input_iterator <I> &&\n std::forward_iterator<I> &&\n no_throw_sentinel<I, I>;\n\ntemplate <no_throw_forward_iterator I>\nvoid f(const char* name) {\n std::cout << name << \" is no-throw-forward-iterator\" << std::endl;\n}\n\ntemplate<typename I>\nvoid f(const char* name) {\n std::cout << name << \" is not no-throw-forward-iterator\" << std::endl;\n}\n\nint main() {\n f<int*>(\"int*\");\n f<const int*>(\"const int*\");\n f<std::forward_list<int>::iterator>(\"std::forward_list<int>::iterator\");\n f<std::list<int>::iterator>(\"std::list<int>::iterator\");\n f<std::vector<int>::iterator>(\"std::vector<int>::iterator\");\n f<std::vector<bool>::iterator>(\"std::vector<bool>::iterator\");\n}\n"}], "page_id": ["reference", "memory", "no-throw-forward-iterator"]}"> |
72 | 72 | <nav class="navbar navbar-default" role="navigation"> |
73 | 73 | <div class="container-fluid"> |
74 | 74 | <div class="navbar-header"> |
|
188 | 188 |
|
189 | 189 | <p class="text-right"><small> |
190 | 190 | 最終更新日時(UTC): |
191 | | - <span itemprop="datePublished" content="2025-07-08T15:33:39"> |
192 | | - 2025年07月08日 15時33分39秒 |
| 191 | + <span itemprop="datePublished" content="2025-10-18T10:18:33"> |
| 192 | + 2025年10月18日 10時18分33秒 |
193 | 193 | </span> |
194 | 194 | <br/> |
195 | 195 | <span itemprop="author" itemscope itemtype="http://schema.org/Person"> |
196 | | - <span itemprop="name">Akira Takahashi</span> |
| 196 | + <span itemprop="name">Raclamusi</span> |
197 | 197 | </span> |
198 | 198 | が更新 |
199 | 199 | </small></p> |
@@ -238,7 +238,7 @@ <h2>備考</h2> |
238 | 238 | <li>このコンセプトは、<code><a href="../vector/vector.html">std::vector</a><bool></code>のイテレータのような、プロキシオブジェクトを指すイテレータを除外する</li> |
239 | 239 | </ul> |
240 | 240 | <h2>例</h2> |
241 | | -<p><div class="yata" id="6e3483db1078518be108cc1a6fda0df857ae4375"><div class="codehilite"><pre><span></span><code><span class="cp">#include</span> <span class="cpf"><a href="../iostream.html"><iostream></a></span><span class="cp"></span> |
| 241 | +<p><div class="yata" id="01a88f7dabe361fe1d22834eea4da59f1b5ba5e7"><div class="codehilite"><pre><span></span><code><span class="cp">#include</span> <span class="cpf"><a href="../iostream.html"><iostream></a></span><span class="cp"></span> |
242 | 242 | <span class="cp">#include</span> <span class="cpf"><a href="../concepts.html"><concepts></a></span><span class="cp"></span> |
243 | 243 | <span class="cp">#include</span> <span class="cpf"><a href="../iterator.html"><iterator></a></span><span class="cp"></span> |
244 | 244 | <span class="cp">#include</span> <span class="cpf"><a href="../memory.html"><memory></a></span><span class="cp"></span> |
@@ -278,8 +278,6 @@ <h2>例</h2> |
278 | 278 | <span class="n">f</span><span class="o"><</span><span class="n"><a href="../list/list.html">std::list</a></span><span class="o"><</span><span class="kt">int</span><span class="o">>::</span><span class="n">iterator</span><span class="o">></span><span class="p">(</span><span class="s">"<a href="../list/list.html">std::list</a><int>::iterator"</span><span class="p">);</span> |
279 | 279 | <span class="n">f</span><span class="o"><</span><span class="n"><a href="../vector/vector.html">std::vector</a></span><span class="o"><</span><span class="kt">int</span><span class="o">>::</span><span class="n">iterator</span><span class="o">></span><span class="p">(</span><span class="s">"<a href="../vector/vector.html">std::vector</a><int>::iterator"</span><span class="p">);</span> |
280 | 280 | <span class="n">f</span><span class="o"><</span><span class="n"><a href="../vector/vector.html">std::vector</a></span><span class="o"><</span><span class="kt">bool</span><span class="o">>::</span><span class="n">iterator</span><span class="o">></span><span class="p">(</span><span class="s">"<a href="../vector/vector.html">std::vector</a><bool>::iterator"</span><span class="p">);</span> |
281 | | - |
282 | | - <span class="n"><a href="../iostream/cout.html">std::cout</a></span> <span class="o"><<</span> <span class="s">"</span><span class="se">\n</span><span class="s">"</span><span class="p">;</span> |
283 | 281 | <span class="p">}</span> |
284 | 282 | </code></pre></div> |
285 | 283 | </div></p> |
|
0 commit comments