<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>GPGA</author_name>
  <author_url>https://blog.hatena.ne.jp/GPGA/</author_url>
  <blog_title>GPGAのやる気を持続する開発および、研究日記 </blog_title>
  <blog_url>https://gpga.hatenadiary.org/</blog_url>
  <categories>
    <anon>プログラミング言語 C++</anon>
  </categories>
  <description>STL標準のstd::allocatorには、アラインメントを操作する機能がないので 確保したいメモリのアイランメントを設定したい場合、自前でアロケータを作る必要がある #include &lt;malloc.h&gt; typedef unsigned long uint32; // デフォで4バイトアラインメント template &lt;class T, uint32 N = 4&gt; class CAllocator : public std::allocator&lt;T&gt; { public: typedef uint32 size_type; typedef T* pointer; typedef const…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgpga.hatenadiary.org%2Fentry%2F20090120%2F1232514045&quot; title=&quot;アロケータの作り方 - GPGAのやる気を持続する開発および、研究日記 &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>2009-01-20 14:00:45</published>
  <title>アロケータの作り方</title>
  <type>rich</type>
  <url>https://gpga.hatenadiary.org/entry/20090120/1232514045</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
