[#bsl-_STLP_alloc_proxy]
= xref:bsl.adoc[bsl]::&lowbar;STLP&lowbar;alloc&lowbar;proxy
:relfileprefix: ../
:mrdocs:

Proxy combining an allocator with a stored value for STLPort containers&period;

== Synopsis

Declared in `&lt;bslstp&lowbar;alloc&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class &lowbar;Value,
    class &lowbar;Tp,
    class &lowbar;MaybeReboundAlloc&gt;
class &lowbar;STLP&lowbar;alloc&lowbar;proxy
    : public xref:BloombergLP/bslalg/ContainerBase.adoc[BloombergLP::bslalg::ContainerBase&lt;&lowbar;MaybeReboundAlloc&gt;]
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:BloombergLP/bslalg/ContainerBase.adoc[BloombergLP::bslalg::ContainerBase&lt;&lowbar;MaybeReboundAlloc&gt;]`
| Allocator proxy class for STL&hyphen;style containers&period; Provides access to the allocator&period; Implements the entire STL allocator interface, redirecting allocation and deallocation calls to the proxied allocator&period; One of two possible base classes is chosen depending on whether `ALLOCATOR` is an empty class&period;
|===

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslalg/ContainerBase/AllocatorType.adoc[`AllocatorType`] 
| Alias for the (template parameter) `ALLOCATOR` type&period;
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:bsl/_STLP_alloc_proxy/2constructor.adoc[`&lowbar;STLP&lowbar;alloc&lowbar;proxy`]         [.small]#[constructor]#
| Create a proxy holding the specified allocator and data value&period;
| xref:BloombergLP/bslalg/ContainerBase/equalAllocator.adoc[`equalAllocator`] 
| Returns true if this object and `rhs` have allocators that compare equal&period;
| xref:bsl/_STLP_alloc_proxy/get_allocator.adoc[`get&lowbar;allocator`] 
| Return a copy of the allocator held by this proxy&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:bsl/_STLP_alloc_proxy/_M_data.adoc[`&lowbar;M&lowbar;data`] 
| Data member managed by this allocator proxy&period;
|===



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