<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hhelibex</author_name>
  <author_url>https://blog.hatena.ne.jp/hhelibex/</author_url>
  <blog_title>HHeLiBeXの日記 正道編</blog_title>
  <blog_url>https://hhelibex.hatenablog.jp/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>C++でよく使われるvectorクラスだが、メソッドがよく分からなかったので、サンプルを全部詰め込んでみた。 ソースコード #include &lt;array&gt; #include &lt;iostream&gt; #include &lt;vector&gt; std::vector&lt;int&gt;&amp; init() { static std::vector&lt;int&gt; v = {1, 99, 4}; return v; } int dump(const std::vector&lt;int&gt;&amp; v) { std::cout &lt;&lt; &quot; elem = {&quot;; for (int x : v) { std::cout &lt;&lt; &quot; &quot; &lt;&lt; x;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhhelibex.hatenablog.jp%2Fentry%2F2021%2F09%2F12%2F123720&quot; title=&quot;vectorクラスまとめ - HHeLiBeXの日記 正道編&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>2021-09-12 12:37:20</published>
  <title>vectorクラスまとめ</title>
  <type>rich</type>
  <url>https://hhelibex.hatenablog.jp/entry/2021/09/12/123720</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
