<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>osyo-manga</author_name>
  <author_url>https://blog.hatena.ne.jp/osyo-manga/</author_url>
  <blog_title>Secret Garden(Instrumental)</blog_title>
  <blog_url>https://secret-garden.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>C++20</anon>
  </categories>
  <description>一人 C++20 Advent Calendar 2019 8日目の記事になります。 指示付き初期化 C++20 では {} で初期化する場合に任意のメンバ変数を指定して初期化する事が出来ます。 #include &lt;iostream&gt; #include &lt;string&gt; struct user{ int id = -1; std::string name; int age; }; int main(){ // メンバ変数名を指定して初期化出来る auto homu = user { .id = 1, .name = &quot;homu&quot;, .age = 14 }; std::cout &lt;&lt; homu.…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2019%2F12%2F08%2F233330&quot; title=&quot;【一人 C++20 Advent Calendar 2019】指示付き初期化【7日目】 - Secret Garden(Instrumental)&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>2019-12-08 23:33:30</published>
  <title>【一人 C++20 Advent Calendar 2019】指示付き初期化【7日目】</title>
  <type>rich</type>
  <url>https://secret-garden.hatenablog.com/entry/2019/12/08/233330</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
