<?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>プログラミング言語</anon>
  </categories>
  <description>vector&lt;int&gt; n; // do something ... vector&lt;int&gt;().swap(n); // n を空にする コンテナを空にする方法として、各所で紹介されているC++のSTLのイディオム。これはこれで、スマートかもしれないけれど、やっぱり自然ではないような。C++の習得の難しさは、言語仕様の難しさもさることながら、イディオムの多さのような気がします。しかも。イディオムにそわない書き方をしても、それもまた正しいC++のプログラムなわけで。 仕様が柔軟なことで、さまざまな表現ができるわけですが、学習途上の人にとっては、とらえどころのないものになっている気がします。コーデ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.emattsan.org%2Fentry%2F20060131%2F1138708519&quot; title=&quot;C++のイディオムは、バッドノウハウか？ - エンジニアのソフトウェア的愛情&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-01-31 20:55:19</published>
  <title>C++のイディオムは、バッドノウハウか？</title>
  <type>rich</type>
  <url>https://blog.emattsan.org/entry/20060131/1138708519</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
