3 <meta http-equiv=
"Content-Type" content=
"text/html; charset=US-ASCII">
4 <title>Class template pool_allocator
<void, UserAllocator, Mutex, NextSize, MaxSize
></title>
5 <link rel=
"stylesheet" href=
"../../../../../doc/src/boostbook.css" type=
"text/css">
6 <meta name=
"generator" content=
"DocBook XSL Stylesheets V1.76.1">
7 <link rel=
"home" href=
"../index.html" title=
"Boost.Pool">
8 <link rel=
"up" href=
"../header/boost/pool/pool_alloc_hpp.html" title=
"Header <boost/pool/pool_alloc.hpp>">
9 <link rel=
"prev" href=
"pool_allocator/rebind.html" title=
"Struct template rebind">
10 <link rel=
"next" href=
"pool_allocator_void__UserAllocator__M_id378014/rebind.html" title=
"Struct template rebind">
12 <body bgcolor=
"white" text=
"black" link=
"#0000FF" vlink=
"#840084" alink=
"#0000FF">
13 <table cellpadding=
"2" width=
"100%"><tr>
14 <td valign=
"top"><img alt=
"Boost C++ Libraries" width=
"277" height=
"86" src=
"../../../../../boost.png"></td>
15 <td align=
"center"><a href=
"../../../../../index.html">Home
</a></td>
16 <td align=
"center"><a href=
"../../../../../libs/libraries.htm">Libraries
</a></td>
17 <td align=
"center"><a href=
"http://www.boost.org/users/people.html">People
</a></td>
18 <td align=
"center"><a href=
"http://www.boost.org/users/faq.html">FAQ
</a></td>
19 <td align=
"center"><a href=
"../../../../../more/index.htm">More
</a></td>
22 <div class=
"spirit-nav">
23 <a accesskey=
"p" href=
"pool_allocator/rebind.html"><img src=
"../../../../../doc/src/images/prev.png" alt=
"Prev"></a><a accesskey=
"u" href=
"../header/boost/pool/pool_alloc_hpp.html"><img src=
"../../../../../doc/src/images/up.png" alt=
"Up"></a><a accesskey=
"h" href=
"../index.html"><img src=
"../../../../../doc/src/images/home.png" alt=
"Home"></a><a accesskey=
"n" href=
"pool_allocator_void__UserAllocator__M_id378014/rebind.html"><img src=
"../../../../../doc/src/images/next.png" alt=
"Next"></a>
25 <div class=
"refentry">
26 <a name=
"boost.pool_allocator_void,_UserAllocator,_M_id378014"></a><div class=
"titlepage"></div>
27 <div class=
"refnamediv">
28 <h2><span class=
"refentrytitle">Class template pool_allocator
<void, UserAllocator, Mutex, NextSize, MaxSize
></span></h2>
29 <p>boost::pool_allocator
<void, UserAllocator, Mutex, NextSize, MaxSize
> — Specialization of pool_allocator
<void
>.
</p>
31 <h2 xmlns:
rev=
"http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class=
"refsynopsisdiv-title">Synopsis
</h2>
32 <div xmlns:
rev=
"http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class=
"refsynopsisdiv"><pre class=
"synopsis"><span class=
"comment">// In header:
<<a class=
"link" href=
"../header/boost/pool/pool_alloc_hpp.html" title=
"Header <boost/pool/pool_alloc.hpp>">boost/pool/pool_alloc.hpp
</a>>
34 </span><span class=
"keyword">template
</span><span class=
"special"><</span><span class=
"keyword">typename
</span> UserAllocator
<span class=
"special">,
</span> <span class=
"keyword">typename
</span> Mutex
<span class=
"special">,
</span> <span class=
"keyword">unsigned
</span> NextSize
<span class=
"special">,
</span>
35 <span class=
"keyword">unsigned
</span> MaxSize
<span class=
"special">></span>
36 <span class=
"keyword">class
</span> <a class=
"link" href=
"pool_allocator_void__UserAllocator__M_id378014.html" title=
"Class template pool_allocator<void, UserAllocator, Mutex, NextSize, MaxSize>">pool_allocator
</a><span class=
"special"><</span><span class=
"keyword">void
</span><span class=
"special">,
</span> <span class=
"identifier">UserAllocator
</span><span class=
"special">,
</span> <span class=
"identifier">Mutex
</span><span class=
"special">,
</span> <span class=
"identifier">NextSize
</span><span class=
"special">,
</span> <span class=
"identifier">MaxSize
</span><span class=
"special">></span> <span class=
"special">{
</span>
37 <span class=
"keyword">public
</span><span class=
"special">:
</span>
38 <span class=
"comment">// types
</span>
39 <span class=
"keyword">typedef
</span> <span class=
"keyword">void
</span> <span class=
"special">*
</span> <a name=
"boost.pool_allocator_void,_UserAllocator,_M_id378014.pointer"></a><span class=
"identifier">pointer
</span><span class=
"special">;
</span>
40 <span class=
"keyword">typedef
</span> <span class=
"keyword">const
</span> <span class=
"keyword">void
</span> <span class=
"special">*
</span> <a name=
"boost.pool_allocator_void,_UserAllocator,_M_id378014.const_pointer"></a><span class=
"identifier">const_pointer
</span><span class=
"special">;
</span>
41 <span class=
"keyword">typedef
</span> <span class=
"keyword">void
</span> <a name=
"boost.pool_allocator_void,_UserAllocator,_M_id378014.value_type"></a><span class=
"identifier">value_type
</span><span class=
"special">;
</span>
43 <span class=
"comment">// member classes/structs/unions
</span>
45 <span class=
"comment">// Nested class rebind allows for transformation from pool_allocator
<T
> to
46 // pool_allocator
<U
>.
</span>
47 <span class=
"keyword">template
</span><span class=
"special"><</span><span class=
"keyword">typename
</span> U
<span class=
"special">></span>
48 <span class=
"keyword">struct
</span> <a class=
"link" href=
"pool_allocator_void__UserAllocator__M_id378014/rebind.html" title=
"Struct template rebind">rebind
</a> <span class=
"special">{
</span>
49 <span class=
"comment">// types
</span>
50 <span class=
"keyword">typedef
</span> <a class=
"link" href=
"pool_allocator.html" title=
"Class template pool_allocator">pool_allocator
</a><span class=
"special"><</span> <span class=
"identifier">U
</span><span class=
"special">,
</span> <span class=
"identifier">UserAllocator
</span><span class=
"special">,
</span> <span class=
"identifier">Mutex
</span><span class=
"special">,
</span> <span class=
"identifier">NextSize
</span><span class=
"special">,
</span> <span class=
"identifier">MaxSize
</span> <span class=
"special">></span> <a class=
"link" href=
"pool_allocator_void__UserAllocator__M_id378014/rebind.html#boost.pool_allocator_void,_UserAllocator,_M_id378014.rebind.other"><span class=
"identifier">other
</span></a><span class=
"special">;
</span>
51 <span class=
"special">}
</span><span class=
"special">;
</span>
52 <span class=
"special">}
</span><span class=
"special">;
</span></pre></div>
53 <div class=
"refsect1">
54 <a name=
"id935804"></a><h2>Description
</h2>
55 <p>Specialization of
<a class=
"link" href=
"pool_allocator.html" title=
"Class template pool_allocator">pool_allocator
</a> for type void: required by the standard to make this a conforming allocator type.
</p>
58 <table xmlns:
rev=
"http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width=
"100%"><tr>
59 <td align=
"left"></td>
60 <td align=
"right"><div class=
"copyright-footer">Copyright
© 2000-
2006 Stephen Cleary
<br>Copyright
© 2011 Paul A. Bristow
<p>
61 Distributed under the Boost Software License, Version
1.0. (See accompanying
62 file LICENSE_1_0.txt or copy at
<a href=
"http://www.boost.org/LICENSE_1_0.txt" target=
"_top">http://www.boost.org/LICENSE_1_0.txt
</a>)
67 <div class=
"spirit-nav">
68 <a accesskey=
"p" href=
"pool_allocator/rebind.html"><img src=
"../../../../../doc/src/images/prev.png" alt=
"Prev"></a><a accesskey=
"u" href=
"../header/boost/pool/pool_alloc_hpp.html"><img src=
"../../../../../doc/src/images/up.png" alt=
"Up"></a><a accesskey=
"h" href=
"../index.html"><img src=
"../../../../../doc/src/images/home.png" alt=
"Home"></a><a accesskey=
"n" href=
"pool_allocator_void__UserAllocator__M_id378014/rebind.html"><img src=
"../../../../../doc/src/images/next.png" alt=
"Next"></a>