<?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>（１） 似通った関数を関数テンプレートで一つにまとめよう同じコードがあちこちに存在するプログラムは悪いコードの見本です．したがって，プログラミングで最も浅はかな行為はコピーアンドペーストです．これをやると必ずコードが重複しますからね．しかし，まったく同じではないが似たようなコードができてしまうことがあります．例えば，2つの引数のうち大きい方の整数を返す関数を書くとします。 001 int max(int a, int b) 002 { 003 if (a&lt;b) return b; 004 else return a; 005 }このようになるでしょう．ここで，int型ではなくdouble型バー…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fharu-s.hatenablog.com%2Fentry%2F20060503%2F1146591183&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-05-03 02:33:03</published>
  <title>C++テンプレートを使いこなす！　第一部　（１）</title>
  <type>rich</type>
  <url>https://haru-s.hatenablog.com/entry/20060503/1146591183</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
