<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>faith_and_brave</author_name>
  <author_url>https://blog.hatena.ne.jp/faith_and_brave/</author_url>
  <blog_title>Faith and Brave - C++で遊ぼう</blog_title>
  <blog_url>https://faithandbrave.hateblo.jp/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>2023年2月17日発売の『Software Design 2023年3月号』に書いたC++23記事で、以下のようにviews::enumerateの例を紹介していますが、 for (auto x : enumerate(v)) { println(&quot;{} {}&quot;, x.index, x.value); } xの型は実際にはtuple&lt;difference_type, T&gt;となる予定なので、index/valueメンバ変数はもっていませんでした。このコードは間違いでした。 基本的に構造化束縛で使うことになりそうです。 for (auto [index, value] : enumerate(v…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F2023%2F02%2F16%2F110624&quot; title=&quot;C++23記事の訂正 : enumerateの使い方が間違っていました - Faith and Brave - C++で遊ぼう&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-02-16 11:06:24</published>
  <title>C++23記事の訂正 : enumerateの使い方が間違っていました</title>
  <type>rich</type>
  <url>https://faithandbrave.hateblo.jp/entry/2023/02/16/110624</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
