<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>torutk</author_name>
  <author_url>https://blog.hatena.ne.jp/torutk/</author_url>
  <blog_title>torutkのブログ</blog_title>
  <blog_url>https://torutk.hatenablog.jp/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>d:id:torutk:20080914で契約による設計をC++言語で実装してみました。しかし、事後条件については、簡潔に書くのが難しいです。 事後条件のコード検討 ちょっとした名簿を例にコードを見ていきます。PersonListクラスとPersonクラスがあり、PersonListのaddメンバ関数について事後条件を記述したとします。 事後条件 PersonListクラスのメンバ変数list_の要素数は、addメンバ関数を呼ぶ前の要素数に1を加えた値である PersonListクラスのメンバ変数list_の最後尾の要素は、addメンバ関数の引数である べたに記述 class PersonLi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftorutk.hatenablog.jp%2Fentry%2F20081013%2Fp1&quot; title=&quot;契約による設計（Design by Contract）の実装〜事後条件判定の改善 - torutkのブログ&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-10-13 00:00:00</published>
  <title>契約による設計（Design by Contract）の実装〜事後条件判定の改善</title>
  <type>rich</type>
  <url>https://torutk.hatenablog.jp/entry/20081013/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
