<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kikairoya</author_name>
  <author_url>https://blog.hatena.ne.jp/kikairoya/</author_url>
  <blog_title>kikairoya’s diary</blog_title>
  <blog_url>https://kikairoya.hatenablog.com/</blog_url>
  <categories>
    <anon>ソフトウェア</anon>
    <anon>C++</anon>
  </categories>
  <description>STLの一翼を担うdeque(デックと読むらしい)ですが、その性能に比していまいち知名度が低いようです。 そこで、少しdequeについておさらいしましょう。 dequeの構造 まずは、dequeの期待される内部構造から。 といっても、非常に単純で、std::vector *&gt;とほぼ等価と考えてかまいません。固定長の領域(ページと呼ぶ)へのポインタを配列にして管理している構造です。 これにより、vectorと違い、begin() -- end()の範囲がメモリ上で連続していることは期待できません。が、両端への挿入による再確保が発生しても全要素の移動にはならないため、償却定数時間のvector::…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkikairoya.hatenablog.com%2Fentry%2F20100718%2F1279465696&quot; title=&quot;そろそろstd::dequeについて語ろうか - kikairoya’s diary&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>2010-07-18 00:08:16</published>
  <title>そろそろstd::dequeについて語ろうか</title>
  <type>rich</type>
  <url>https://kikairoya.hatenablog.com/entry/20100718/1279465696</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
