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

#include <bslalg_containerbase.h>

Public Types

typedef ALLOCATOR AllocatorType
 

Public Member Functions

 ContainerBase_NonEmptyBase (const ALLOCATOR &basicAllocator)
 
 ~ContainerBase_NonEmptyBase ()
 Destroy this object.
 
ALLOCATOR & allocatorRef ()
 
const ALLOCATOR & allocatorRef () const
 

Detailed Description

template<class ALLOCATOR>
class bslalg::ContainerBase_NonEmptyBase< ALLOCATOR >

One of two possible base classes for ContainerBase. This class should be used only for allocators with size > 0 (Inheritance from this type can cause ambiguous conversions and should be avoided or insulated.)

See bslalg_containerbase

Member Typedef Documentation

◆ AllocatorType

template<class ALLOCATOR >
typedef ALLOCATOR bslalg::ContainerBase_NonEmptyBase< ALLOCATOR >::AllocatorType

Constructor & Destructor Documentation

◆ ContainerBase_NonEmptyBase()

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

Construct this object to hold a copy of the specified basicAllocator of the (template parameter) type ALLOCATOR.

◆ ~ContainerBase_NonEmptyBase()

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

Member Function Documentation

◆ allocatorRef() [1/2]

template<class ALLOCATOR >
ALLOCATOR & bslalg::ContainerBase_NonEmptyBase< ALLOCATOR >::allocatorRef ( )
inline

Return a reference to this object's allocator, which is typically a copy of the allocator used to construct this object.

◆ allocatorRef() [2/2]

template<class ALLOCATOR >
const ALLOCATOR & bslalg::ContainerBase_NonEmptyBase< ALLOCATOR >::allocatorRef ( ) const
inline

Return a non-modifiable reference to this object's allocator, which is typically a copy of the allocator used to construct this object.


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