<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pyopyopyo</author_name>
  <author_url>https://blog.hatena.ne.jp/pyopyopyo/</author_url>
  <blog_title>pyopyopyo - Linuxとかプログラミングの覚え書き - </blog_title>
  <blog_url>https://pyopyopyo.hatenablog.com/</blog_url>
  <categories>
    <anon>c++</anon>
    <anon>programming</anon>
  </categories>
  <description>C++11を使うと綺麗に実装できます まず format() というテンプレート関数を作ります．C++11で新しく導入された，可変引数テンプレート，および std::snprintf() を使います． #include &lt;string&gt; #include &lt;cstdio&gt; #include &lt;vector&gt; template &lt;typename ... Args&gt; std::string format(const std::string&amp; fmt, Args ... args ) { size_t len = std::snprintf( nullptr, 0, fmt.c_str(), ar…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpyopyopyo.hatenablog.com%2Fentry%2F2019%2F02%2F08%2F102456&quot; title=&quot;iostream や std::stringでprintfのような書式指定を行う方法 (C++11版) - pyopyopyo - Linuxとかプログラミングの覚え書き - &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>2019-02-08 10:24:56</published>
  <title>iostream や std::stringでprintfのような書式指定を行う方法 (C++11版)</title>
  <type>rich</type>
  <url>https://pyopyopyo.hatenablog.com/entry/2019/02/08/102456</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
