AllocatorBase< T > Class Template Reference

Base class for all allocators used by SecBlock. More...

Inheritance diagram for AllocatorBase< T >:
AllocatorWithCleanup< T, T_Align16 > FixedSizeAllocatorWithCleanup< T, S, A, T_Align16 > FixedSizeAllocatorWithCleanup< T, S, NullAllocator< T >, T_Align16 > NullAllocator< T >

List of all members.

Public Types

typedef T value_type
typedef size_t size_type
typedef std::ptrdiff_t difference_type
typedef T * pointer
typedef const T * const_pointer
typedef T & reference
typedef const T & const_reference

Public Member Functions

pointer address (reference r) const
const_pointer address (const_reference r) const
void construct (pointer p, const T &val)
void destroy (pointer p)
size_type max_size () const
 Returns the maximum number of elements the allocator can provide.
template<typename U , typename... Args>
void construct (U *ptr, Args &&...args)
 Constructs a new U using variadic arguments.
template<typename U >
void destroy (U *ptr)
 Destroys an U constructed with variadic arguments.

Detailed Description

template<class T>
class AllocatorBase< T >

Base class for all allocators used by SecBlock.

Template Parameters:
T the class or type

Definition at line 29 of file secblock.h.


Member Function Documentation

template<class T>
size_type AllocatorBase< T >::max_size (  )  const [inline]
template<class T>
template<typename U , typename... Args>
void AllocatorBase< T >::construct ( U *  ptr,
Args &&...  args 
) [inline]

Constructs a new U using variadic arguments.

Template Parameters:
U the type to be forwarded
Args the arguments to be forwarded
Parameters:
ptr pointer to type U
args variadic arguments

This is a C++11 feature. It is available when CRYPTOPP_CXX11_VARIADIC_TEMPLATES is defined. The define is controlled by compiler versions detected in config.h.

Definition at line 67 of file secblock.h.

template<class T>
template<typename U >
void AllocatorBase< T >::destroy ( U *  ptr  )  [inline]

Destroys an U constructed with variadic arguments.

Template Parameters:
U the type to be forwarded

This is a C++11 feature. It is available when CRYPTOPP_CXX11_VARIADIC_TEMPLATES is defined. The define is controlled by compiler versions detected in config.h.

Definition at line 74 of file secblock.h.


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

Generated on 24 Mar 2016 for Crypto++ by  doxygen 1.6.1