<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>naokirin</author_name>
  <author_url>https://blog.hatena.ne.jp/naokirin/</author_url>
  <blog_title>What is it, naokirin?</blog_title>
  <blog_url>https://naokirin.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング-C++</anon>
  </categories>
  <description>ちょっと前に書いたC++0xの機能(shared_ptr/スマートポインタ)に出てきたConst auto_ptrについてまとめてみることにしました。調べればすぐにわかることですし考えてもわかることかもしれませんが、auto_ptrをconstで宣言することで所有権の移譲を防止するすることができます。このイディオムをConst auto_ptrと言います。auto_ptrの(良くも悪くも)欠点として、破壊的コピーが存在します。つまりコピー元をを破壊して所有権を移譲することです。(このあたりの例もC++0xの機能(shared_ptr/スマートポインタ)の記事を参照)この破壊的コピーをして所有権…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnaokirin.hatenablog.com%2Fentry%2F20110131%2F1296402791&quot; title=&quot;Const auto_ptrイディオム - What is it, naokirin?&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-01-31 00:53:11</published>
  <title>Const auto_ptrイディオム</title>
  <type>rich</type>
  <url>https://naokirin.hatenablog.com/entry/20110131/1296402791</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
