<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>E_Mattsan</author_name>
  <author_url>https://blog.hatena.ne.jp/E_Mattsan/</author_url>
  <blog_title>エンジニアのソフトウェア的愛情</blog_title>
  <blog_url>https://blog.emattsan.org/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>diffをつくる(2)で掲載したコードは文字列を比較するコードですが、std::stringを他のコンテナに替えればそのコンテナどうしのdiffがとれます。 任意のコンテナのdiffをとれるようにテンプレートにしたものを掲載。この例ではstd::stringのdiffとstd::vectorのdiffを取っています。 実行結果。 $ cat hello_c++.txt Hello C++! $ cat hello_diff.txt Hello diff! $ ./my_diff2_2 hello_c++.txt hello_diff.txt FILE NAME h e l l o _ - c …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.emattsan.org%2Fentry%2F20090425%2F1240605865&quot; title=&quot;diffをつくる(2) -補遺 - エンジニアのソフトウェア的愛情&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>2009-04-25 05:44:25</published>
  <title>diffをつくる(2) -補遺</title>
  <type>rich</type>
  <url>https://blog.emattsan.org/entry/20090425/1240605865</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
