Open CASCADE Technology
7.6.0
|
Implements specialization NCollection_StdAllocator<void>. More...
#include <NCollection_StdAllocator.hxx>
Data Structures | |
struct | rebind |
Public Types | |
typedef void * | pointer |
typedef const void * | const_pointer |
typedef void | value_type |
Public Member Functions | |
NCollection_StdAllocator () | |
Constructor. More... | |
NCollection_StdAllocator (const Handle< NCollection_BaseAllocator > &theAlloc) | |
Constructor. More... | |
NCollection_StdAllocator (const NCollection_StdAllocator &X) | |
Constructor. More... | |
const Handle< NCollection_BaseAllocator > & | Allocator () const |
Returns an underlying NCollection_BaseAllocator instance. More... | |
NCollection_StdAllocator & | operator= (const NCollection_StdAllocator &X) |
Assignment operator. More... | |
Protected Attributes | |
Handle< NCollection_BaseAllocator > | myAlloc |
Implements specialization NCollection_StdAllocator<void>.
Specialization is of low value and should normally be avoided in favor of a typed specialization.
Example of use:
typedef const void* NCollection_StdAllocator< void >::const_pointer |
typedef void* NCollection_StdAllocator< void >::pointer |
typedef void NCollection_StdAllocator< void >::value_type |
|
inline |
Constructor.
Creates an object using default Open CASCADE allocation mechanism, i.e. which uses Standard::Allocate() and Standard::Free() underneath.
|
inline |
Constructor.
Saves theAlloc as an underlying allocator instance.
|
inline |
Constructor.
Copies Allocator() from X.
|
inline |
Returns an underlying NCollection_BaseAllocator instance.
Returns an object specified in the constructor.
|
inline |
Assignment operator.
|
protected |