<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>haru-s</author_name>
  <author_url>https://blog.hatena.ne.jp/haru-s/</author_url>
  <blog_title>...ing logging 4.0</blog_title>
  <blog_url>https://haru-s.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>（３） 特定の型だけ別に扱いたいときは特殊化しようまずはおさらいです．関数テンプレートを使えば，型だけが異なる関数を複数作らなくても済むので，コードの重複を避けられるのでした．ところが，「普段は汎用の関数テンプレートで十分だけど，この型の場合だけは専用の処理をしたい！」という場合があります．例えば，汎用の関数テンプレートでは必要な性能が出ないため，特定の型に限り特化したコードが必要になることがあります．ここでは，それとは別の例を考えることにします．まず，関数テンプレートの中で組み込みの数値型（ int，double，float など）を受け取って二乗した値を返す square&lt;&gt; 関数テンプレ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fharu-s.hatenablog.com%2Fentry%2F20060622%2F1150947300&quot; title=&quot;C++テンプレートを使いこなす！　第一部　（３） - ...ing logging 4.0&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-22 12:35:00</published>
  <title>C++テンプレートを使いこなす！　第一部　（３）</title>
  <type>rich</type>
  <url>https://haru-s.hatenablog.com/entry/20060622/1150947300</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
