<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>zehnpaard</author_name>
  <author_url>https://blog.hatena.ne.jp/zehnpaard/</author_url>
  <blog_title>Arantium Maestum</blog_title>
  <blog_url>https://zehnpaard.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>Effective C++</anon>
  </categories>
  <description>前回の項目でカプセル化の重要性について書いてあったが、そのカプセル化を最大に実現するためには、内部実装に触れることのできる面積を最小化する必要がある。 つまり、メンバ関数、フレンド関数といった「クラス内部のデータメンバに直接アクセスできる関数」をなるべく減らすのがポイントになる。クラスに最小限のAPIを定義し、そのAPIを使ったNon-Member Non-Friend関数を使ってオブジェクトとやりとりする。 そのような関数を（たとえばJavaからきたプログラマは）別のユーティリティクラスのメンバ関数にすることも多いが、C++で自然な書き方はnamespaceを使って関連性のあるクラスと関数を…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzehnpaard.hatenablog.com%2Fentry%2F2018%2F03%2F17%2F205520&quot; title=&quot;Effective C++勉強メモ: Item 23 Non-Member Non-Friend関数をNamespaceで管理しよう - Arantium Maestum&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>2018-03-17 20:55:20</published>
  <title>Effective C++勉強メモ: Item 23 Non-Member Non-Friend関数をNamespaceで管理しよう</title>
  <type>rich</type>
  <url>https://zehnpaard.hatenablog.com/entry/2018/03/17/205520</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
