<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wata_d</author_name>
  <author_url>https://blog.hatena.ne.jp/wata_d/</author_url>
  <blog_title>閑古鳥</blog_title>
  <blog_url>https://www.little-cuckoo.jp/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>programming</anon>
  </categories>
  <description>なんとなく C++ を使っているとクラスを使用しなければならないと言う意識を持ってしまいがちですが (自分が) 、 C++ は別に関数を定義するのにクラスに属している必要などなく、むしろ必要が無いのならば単なる関数として実装してしまう方がむしろ良い選択だと言えます。C++ Coding Standards―101のルール、ガイドライン、ベストプラクティス (C++ in‐depth series) ではメンバ関数よりフリー関数の方が良い理由として、特定のクラスに依存しない分結合が弱まり、また汎用性が高まるという点を挙げています。クラスのメンバになってしまうと、その関数を呼び出すのにいちいちクラ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.little-cuckoo.jp%2Fentry%2F20060511%2F1147294093&quot; title=&quot;フリー関数を活用しよう - 閑古鳥&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-11 05:48:13</published>
  <title>フリー関数を活用しよう</title>
  <type>rich</type>
  <url>https://www.little-cuckoo.jp/entry/20060511/1147294093</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
