[#PoolResource-2constructor-01]
= xref:PoolResource.adoc[PoolResource]::PoolResource
:relfileprefix: ../
:mrdocs:

Constructors

== Synopses

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

Construct a new Pool Resource object, defaults to 2&circ;18&equals;262144 chunk size&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:PoolResource/2constructor-07.adoc[PoolResource]();
----

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

Deleted copy constructor&semi; copying a PoolResource is not supported&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:PoolResource/2constructor-09.adoc[PoolResource](xref:PoolResource.adoc[PoolResource] const& other) = delete;
----

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

Deleted move constructor&semi; moving a PoolResource is not supported&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:PoolResource/2constructor-04.adoc[PoolResource](xref:PoolResource.adoc[PoolResource]&& other) = delete;
----

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

Construct a new PoolResource object which allocates the first chunk&period; chunk&lowbar;size&lowbar;bytes will be rounded up to next multiple of ELEM&lowbar;ALIGN&lowbar;BYTES&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:PoolResource/2constructor-08.adoc[PoolResource](std::size&lowbar;t chunk&lowbar;size&lowbar;bytes);
----

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| The resource that would have been copied&period;
| *chunk&lowbar;size&lowbar;bytes*
| Requested size in bytes of each memory chunk, rounded up to the next multiple of ELEM&lowbar;ALIGN&lowbar;BYTES&period;
|===


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