[#PoolAllocator-04-2constructor-09]
= xref:PoolAllocator-04.adoc[PoolAllocator&lt;pair&lt;COutPoint const, CCoinsCacheEntry&gt;, 152&gt;]::PoolAllocator
:relfileprefix: ../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;support&sol;allocators&sol;pool&period;h&gt;`

Copy constructor&semi; shares the same backing resource&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:PoolAllocator-04/2constructor-04.adoc[PoolAllocator](xref:PoolAllocator-0e.adoc[PoolAllocator&lt;pair&lt;COutPoint const, CCoinsCacheEntry&gt;, 152&gt;] const& other) noexcept = default;
----

[.small]#xref:PoolAllocator-04/2constructor-04.adoc[_» more&period;&period;&period;_]#

Not explicit so we can easily construct it with the correct resource


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:PoolAllocator-04/2constructor-03.adoc[PoolAllocator](xref:PoolAllocator-04/ResourceType.adoc[ResourceType]* resource) noexcept;
----

[.small]#xref:PoolAllocator-04/2constructor-03.adoc[_» more&period;&period;&period;_]#

Rebinding constructor&semi; builds an allocator for a different value type that shares the same backing resource&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class U&gt;
xref:PoolAllocator-04/2constructor-07.adoc[PoolAllocator](xref:PoolAllocator-0e.adoc[PoolAllocator&lt;U, 152UL, 8UL&gt;] const& other) noexcept;
----

[.small]#xref:PoolAllocator-04/2constructor-07.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| The allocator being copied&period;
| *resource*
| The pool resource that this allocator forwards to&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
