<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yohhoy</author_name>
  <author_url>https://blog.hatena.ne.jp/yohhoy/</author_url>
  <blog_title>yohhoyの日記</blog_title>
  <blog_url>https://yohhoy.hatenadiary.jp/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>Boost</anon>
  </categories>
  <description>C++11標準ライブラリに新しく追加されたstd::to_string関数についてメモ*1。組み込み数値型（intやdouble）から文字列クラスstd::stringに変換する。変換処理はsprintf相当で行われる（書式指定文字列については後述）。 #include &lt;string&gt; auto s1 = std::to_string(42); assert(s1 == &quot;42&quot;); auto s2 = std::to_string(3.14); assert(s2 == &quot;3.14&quot;); Boost.Lexical_Castライブラリでも代替可能。 #include &lt;boost/lexi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20120408%2Fp1&quot; title=&quot;to_string関数 - yohhoyの日記&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-04-08 00:00:00</published>
  <title>to_string関数</title>
  <type>rich</type>
  <url>https://yohhoy.hatenadiary.jp/entry/20120408/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
