|
BDE 4.39.x Production Release
|
#include <bslalg_containerbase.h>
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.
Public Types | |
| typedef Base::AllocatorType | AllocatorType |
Public Types inherited from bsl::integral_constant< t_TYPE, t_VALUE > | |
| typedef t_TYPE | value_type |
| typedef integral_constant | type |
Public Member Functions | |
| ContainerBase (const ALLOCATOR &basicAllocator) | |
| ~ContainerBase () | |
| bool | equalAllocator (const ContainerBase &rhs) const |
Public Member Functions inherited from bsl::integral_constant< t_TYPE, t_VALUE > | |
| integral_constant ()=default | |
| integral_constant (const integral_constant &)=default | |
| integral_constant | operator= (const integral_constant &)=default |
| ~integral_constant ()=default | |
| operator value_type () const | |
| value_type | operator() () const |
Additional Inherited Members | |
Static Public Attributes inherited from bsl::integral_constant< t_TYPE, t_VALUE > | |
| static const t_TYPE | value = t_VALUE |
| typedef Base::AllocatorType bslalg::ContainerBase< ALLOCATOR >::AllocatorType |
|
inlineexplicit |
Construct this object using the specified basicAllocator of the parameterized ALLOCATOR type.
|
inline |
Destroy this object.
|
inline |
Returns true if this object and rhs have allocators that compare equal.