<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>faith_and_brave</author_name>
  <author_url>https://blog.hatena.ne.jp/faith_and_brave/</author_url>
  <blog_title>Faith and Brave - C++で遊ぼう</blog_title>
  <blog_url>https://faithandbrave.hateblo.jp/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>C++標準のIOStreamには、std::unitbufフラグというのがあります。これを出力ストリームに設定することで、繰り返し出力を行う処理で、出力するたびにフラッシュが行われるようになります。 #include &lt;fstream&gt; int main() { std::ofstream file(&quot;a.txt&quot;); file &lt;&lt; std::unitbuf; for (int i = 0; i &lt; 10; ++i) { file &lt;&lt; i; // 出力するたびにフラッシュされる } } これは、以下のコードと同じ意味になります： #include &lt;fstream&gt; int main() …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20121030%2F1351580644&quot; title=&quot; 出力するたびにフラッシュする - Faith and Brave - 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>2012-10-30 16:04:04</published>
  <title> 出力するたびにフラッシュする</title>
  <type>rich</type>
  <url>https://faithandbrave.hateblo.jp/entry/20121030/1351580644</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
