<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tera1707</author_name>
  <author_url>https://blog.hatena.ne.jp/tera1707/</author_url>
  <blog_title>tera1707’s blog</blog_title>
  <blog_url>https://tera1707.com/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>もくじ https://tera1707.com/entry/2022/02/06/144447 やりたいこと C++で、数値を書式指定して文字列に直したいとき、昔ながらの char buf[256] = { 0 }; sprintf_s(buf, &quot;%d&quot;, 123); printf_s(buf); という書き方をしていたが、現代(C++20)では、 std::format() なる便利な標準関数があるらしい。試してみる。 チートシート 下記のページを参考に試してみた。 cpprefjp.github.io 試しに書いたのを、今後の部品どりで並べておく。 #include &lt;iostream…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftera1707.com%2Fentry%2F2025%2F04%2F14%2F215401&quot; title=&quot; std::format() チートシート - tera1707’s blog&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>2025-04-14 21:54:01</published>
  <title> std::format() チートシート</title>
  <type>rich</type>
  <url>https://tera1707.com/entry/2025/04/14/215401</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
