<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shinichiro_h</author_name>
  <author_url>https://blog.hatena.ne.jp/shinichiro_h/</author_url>
  <blog_title>兼雑記</blog_title>
  <blog_url>https://shinh.hatenablog.com/</blog_url>
  <categories>
    <anon>Program</anon>
    <anon>C++</anon>
  </categories>
  <description>http://d.hatena.ne.jp/okzk/20060622#1150958620から。動的にサイズを調べるのは以下のようなコードはどうでしょうか。先に言っておくと冗談です。 GCC と cl.exe で確認。たぶんきっと他でもだいたい動きますおそらく。 template&lt;class T&gt; class smart_ptr { T* p_; int size_; static int size_of(void* vp) { char* p = (char*)vp; void* vt = *(void**)p; for (p++; vt != *(void**)p; p++); retu…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinh.hatenablog.com%2Fentry%2F20060623%2F1150996387&quot; title=&quot; 動的に型サイズを求めるスマポ - 兼雑記&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>2006-06-23 02:13:07</published>
  <title> 動的に型サイズを求めるスマポ</title>
  <type>rich</type>
  <url>https://shinh.hatenablog.com/entry/20060623/1150996387</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
