<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Seasons</author_name>
  <author_url>https://blog.hatena.ne.jp/Seasons/</author_url>
  <blog_title>Seasons.NET</blog_title>
  <blog_url>https://seasons.hateblo.jp/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>template</anon>
  </categories>
  <description>動作、構造の専門を受け持つ（ポリシー）を用いることで、それを継承したホスト側を いつでも変更させることができるのがポリシーを使うメリット。 通常の継承では継承の種類が増える程、クラスを実装しなくてはいけないですが、 テンプレートを使えば、テンプレート引数を変更するだけで利用したいポリシーを変更することが できるのです。 この例では、継承先のクラスでは、Createを要求します。 継承先では当然ながら、Createを実装せず、受け取ったポリシーの Createを利用することになります。 #include &quot;stdafx.h&quot; using namespace std; template &lt;type…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fseasons.hateblo.jp%2Fentry%2F20080628%2F1214671506&quot; title=&quot;Modern C++ Design勉強日記　テンプレートでポリシーを使おう！！(1) - Seasons.NET&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>2008-06-28 01:45:06</published>
  <title>Modern C++ Design勉強日記　テンプレートでポリシーを使おう！！(1)</title>
  <type>rich</type>
  <url>https://seasons.hateblo.jp/entry/20080628/1214671506</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
