<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>A7M</author_name>
  <author_url>https://blog.hatena.ne.jp/A7M/</author_url>
  <blog_title>C++Builder好きの秘密基地</blog_title>
  <blog_url>https://a7m.hatenablog.jp/</blog_url>
  <categories>
    <anon>C++ Tips</anon>
  </categories>
  <description>デリーターとは スマートポインタが管理できるのは、メモリ領域だけではなく「構築」と「破棄」がペアになっている任意のリソースも管理できる。 例えば、Cのfopen関数でオープンしたファイルをfclose関数でクローズしたり、あるいは、Windows APIのGDIオブジェクトをDeleteObject関数で破棄したりとか。 その仕組みを実現するのが「デリーター」で、厳密にはスマートポインタのデフォルトのデリーターが&quot;operator delete&quot;となっている。 #pragma hdrstop #include &lt;windows.h&gt; #include &lt;boost/tr1/memory.hpp…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa7m.hatenablog.jp%2Fentry%2F20110701%2F1309499043&quot; title=&quot;スマートポインタの使い方 その3：メモリ以外のリソースをスマートポインタで管理する - C++Builder好きの秘密基地&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>2011-07-01 14:44:03</published>
  <title>スマートポインタの使い方 その3：メモリ以外のリソースをスマートポインタで管理する</title>
  <type>rich</type>
  <url>https://a7m.hatenablog.jp/entry/20110701/1309499043</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
