BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslalg::ContainerBase< ALLOCATOR > Class Template Reference

#include <bslalg_containerbase.h>

Inheritance diagram for bslalg::ContainerBase< ALLOCATOR >:
bsl::integral_constant< t_TYPE, t_VAL >

Public Types

typedef Base::AllocatorType AllocatorType
 
- Public Types inherited from bsl::integral_constant< t_TYPE, t_VAL >
typedef t_TYPE value_type
 
typedef integral_constant type
 

Public Member Functions

 ContainerBase (const ALLOCATOR &basicAllocator)
 
 ~ContainerBase ()
 Destroy this object.
 
bool equalAllocator (const ContainerBase &rhs) const
 
- Public Member Functions inherited from bsl::integral_constant< t_TYPE, t_VAL >
 integral_constant ()=default
 
 integral_constant (const integral_constant &)=default
 
integral_constant operator= (const integral_constant &)=default
 
 ~integral_constant ()=default
 
BSLS_KEYWORD_CONSTEXPR operator value_type () const BSLS_KEYWORD_NOEXCEPT
 Return t_VAL.
 

Additional Inherited Members

- Static Public Attributes inherited from bsl::integral_constant< t_TYPE, t_VAL >
static const t_TYPE value = t_VAL
 

Detailed Description

template<class ALLOCATOR>
class bslalg::ContainerBase< ALLOCATOR >

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.

Member Typedef Documentation

◆ AllocatorType

template<class ALLOCATOR >
typedef Base::AllocatorType bslalg::ContainerBase< ALLOCATOR >::AllocatorType

Constructor & Destructor Documentation

◆ ContainerBase()

template<class ALLOCATOR >
bslalg::ContainerBase< ALLOCATOR >::ContainerBase ( const ALLOCATOR &  basicAllocator)
inlineexplicit

Construct this object using the specified basicAllocator of the parameterized ALLOCATOR type.

◆ ~ContainerBase()

template<class ALLOCATOR >
bslalg::ContainerBase< ALLOCATOR >::~ContainerBase ( )
inline

Member Function Documentation

◆ equalAllocator()

template<class ALLOCATOR >
bool bslalg::ContainerBase< ALLOCATOR >::equalAllocator ( const ContainerBase< ALLOCATOR > &  rhs) const
inline

Returns true if this object and rhs have allocators that compare equal.


The documentation for this class was generated from the following file: