<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nekko1119</author_name>
  <author_url>https://blog.hatena.ne.jp/nekko1119/</author_url>
  <blog_title>C++と色々</blog_title>
  <blog_url>https://nekko1119.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>C++20には std::ssize という関数が追加されています。 cpprefjp.github.io この関数がどう便利なのか紹介します。 C++ではranged based forが存在しますが、インデックス付きでコンテナをイテレートしたい時は通常のfor文を使う場合もあります。 C++20でranged based forにも初期化式を書くことができるようになりましたが、continueと相性が悪いなど完全にfor文を置き換えられるかと言うとそういうわけではありません。 // C++20初期化式付きのrange based for for (int i = 0; auto&amp;&amp; ele…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnekko1119.hatenablog.com%2Fentry%2F2020%2F05%2F07%2F225356&quot; title=&quot;C++20の `std::ssize` が便利 - 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>2020-05-07 22:53:56</published>
  <title>C++20の `std::ssize` が便利</title>
  <type>rich</type>
  <url>https://nekko1119.hatenablog.com/entry/2020/05/07/225356</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
