CNORXZ
Container with Native Operation Routines and Expressions
|
#include <allocator.h>
Classes | |
struct | VX |
Public Types | |
typedef T | value_type |
Public Member Functions | |
Allocator ()=default | |
template<typename U > | |
Allocator (const Allocator< U > &x) | |
T * | allocate (SizeT n) |
void | deallocate (T *p, SizeT n) |
Static Public Attributes | |
static constexpr SizeT | type_size = sizeof(T) |
static constexpr SizeT | N = MAX_VSIZE |
Definition at line 38 of file allocator.h.
|
default |
default constructor
|
inline |
(copy) construct from allocator for different data type
U | input data type |
x | input allocator |
Definition at line 60 of file allocator.h.
allocate n element of type T
n | number of elements |
Definition at line 22 of file allocator.cc.h.
deallocate n elements
p | pointer to first element |
n | number of elements |
Definition at line 34 of file allocator.cc.h.
< type size
Definition at line 41 of file allocator.h.
Definition at line 40 of file allocator.h.