<?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++11標準ライブラリのコンテナには、emplace()、emplace_back()といったメンバ関数が追加されました。これらの関数は、コンテナの要素型のコンストラクタ引数を受け取り、要素型のオブジェクトをemplace()／emplace_back()の内部で一度だけ作る、という効率化の役割を果たしてくれます。 std::vectorのemplace_back()なら、以下のように、要素型Xのコンストラクタ引数を渡すという、シンプルな使い方ができます。 struct X { X(int a, int b, int c) {} }; std::vector&lt;X&gt; v; v.emplace_…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F2014%2F04%2F15%2F151845&quot; title=&quot;mapのemplace - 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>2014-04-15 15:18:45</published>
  <title>mapのemplace</title>
  <type>rich</type>
  <url>https://faithandbrave.hateblo.jp/entry/2014/04/15/151845</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
