<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ototoi</author_name>
  <author_url>https://blog.hatena.ne.jp/ototoi/</author_url>
  <blog_title>明日ではないから</blog_title>
  <blog_url>https://ototoi.hatenadiary.org/</blog_url>
  <categories>
    <anon>study</anon>
  </categories>
  <description>標準コンテナは初期値を持たないコンストラクタはどうしてるかというお話。たとえばstd::vectorでいえばvector()やvector(size)なんか。そのとき内部型をTとすると、T()を呼び出す。ということはintやdoubleなんかも必ず0になる。しかしおもしろいことがひとつあって以下のコードを実行すると #include #include class test_obj{ private: int c; public: test_obj(){ std::coutvector V; V v(3); } 結果は constructor!2293728 constructor!229372…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fototoi.hatenadiary.org%2Fentry%2F20040229%2Fp1&quot; title=&quot;allocator考察 - 明日ではないから&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>2004-02-29 00:00:00</published>
  <title>allocator考察</title>
  <type>rich</type>
  <url>https://ototoi.hatenadiary.org/entry/20040229/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
