<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sygh</author_name>
  <author_url>https://blog.hatena.ne.jp/sygh/</author_url>
  <blog_title>syghの新フラグメント置き場</blog_title>
  <blog_url>https://sygh.hatenadiary.jp/</blog_url>
  <categories>
    <anon>プログラミングTips</anon>
    <anon>C++</anon>
  </categories>
  <description>（これは2010-09-24に書いた故OCNブログの記事を移植したものです）ちょっとしたマイナーテクですが、C++においてクラスのメンバー変数をコンストラクタでゼロクリアする際、下記のように書けます。 class SomeClass { struct Vector3 { float x, y, z; }; int m_intVal; double m_doubleVal; float m_floatArray[4]; const char* m_charPtr; Vector3 m_vector; public: SomeClass() : m_intVal() , m_doubleVal()…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsygh.hatenadiary.jp%2Fentry%2F2014%2F06%2F08%2F015146&quot; title=&quot;C++コンストラクタの初期化子リスト - syghの新フラグメント置き場&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>http://ecx.images-amazon.com/images/I/513HB3VPHAL.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-06-08 01:51:46</published>
  <title>C++コンストラクタの初期化子リスト</title>
  <type>rich</type>
  <url>https://sygh.hatenadiary.jp/entry/2014/06/08/015146</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
