<?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++23に対応した記事は↓ a7m.hatenablog.jp スマートポインタって何？ C++において、operator newでメモリ領域（ヒープ領域）を動的に確保した場合、その領域はoperator deleteでプログラマが責任を持って解放してやらなければならない。しかし、deleteを書き忘れたり、例外が発生したときの処理を怠った場合など、それが正しく行われないことはよくある。正しく解放されなかった領域はOSやプロセスが使用可能なメモリ領域を「不正占拠」し、それが積もり積もると、OSやプロセスが停止する場合がある。 #include &lt;memory&gt; class Mess {}; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa7m.hatenablog.jp%2Fentry%2F20110520%2F1305894007&quot; title=&quot;スマートポインタの使い方 その1：unique_ptr - 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-05-20 21:20:07</published>
  <title>スマートポインタの使い方 その1：unique_ptr</title>
  <type>rich</type>
  <url>https://a7m.hatenablog.jp/entry/20110520/1305894007</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
