<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chiharunpo</author_name>
  <author_url>https://blog.hatena.ne.jp/chiharunpo/</author_url>
  <blog_title>Chiharu の日記</blog_title>
  <blog_url>https://chiharunpo.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>先日の日記の続き。std::allocate_shared 用のカスタム アロケータとして、簡易的なメモリ プールを用意してみました。 namespace { template &lt;int unit&gt; class memory_manager { private: union trait { trait* next; unsigned char body[unit]; }; public: memory_manager(const std::size_t len): free(nullptr), traits(new trait[len]), length(len) { trait* next …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchiharunpo.hatenablog.com%2Fentry%2F20110301%2F1298985233&quot; title=&quot;std::allocate_shared 〜カスタム アロケータ - Chiharu の日記&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>2011-03-01 22:13:53</published>
  <title>std::allocate_shared 〜カスタム アロケータ</title>
  <type>rich</type>
  <url>https://chiharunpo.hatenablog.com/entry/20110301/1298985233</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
