bsl::_STLP_alloc_proxy

Proxy combining an allocator with a stored value for STLPort containers.

Synopsis

Declared in <bslstp_alloc.h>

template<
    class _Value,
    class _Tp,
    class _MaybeReboundAlloc>
class _STLP_alloc_proxy
    : public BloombergLP::bslalg::ContainerBase<_MaybeReboundAlloc>

Base Classes

NameDescription
BloombergLP::bslalg::ContainerBase<_MaybeReboundAlloc>Allocator proxy class for STL-style containers. Provides access to the allocator. Implements the entire STL allocator interface, redirecting allocation and deallocation calls to the proxied allocator. One of two possible base classes is chosen depending on whether ALLOCATOR is an empty class.

Type Aliases

NameDescription
AllocatorType Alias for the (template parameter) ALLOCATOR type.

Member Functions

NameDescription
_STLP_alloc_proxy [constructor]Create a proxy holding the specified allocator and data value.
equalAllocator Returns true if this object and rhs have allocators that compare equal.
get_allocator Return a copy of the allocator held by this proxy.

Data Members

NameDescription
_M_data Data member managed by this allocator proxy.