6 #ifndef CMR_ALLOCATOR_INCLUDED
7 #define CMR_ALLOCATOR_INCLUDED
33 new(data) T(*(T*)value);
51 static inline int comparator(
const Dummy& v1,
const Dummy& v2)
53 const T& ov1 = (
const T&)v1;
54 const T& ov2 = (
const T&)v2;
55 return ov1 < ov2 ? - 1 : ov1 == ov2 ? 0 : 1;
65 static void CMREXD constructor(
Byte* data,
const Byte* value);
66 static void CMREXD destructor(
Byte* data);
67 static int CMREXD comparator(
const Dummy& v1,
const Dummy& v2);
80 static void CMREXD constructor(
Byte* data,
const Byte* value);
81 static void CMREXD destructor(
Byte* data);
82 static int CMREXD comparator(
const Dummy& v1,
const Dummy& v2);
89 typedef int (*FunctionComparator)(
const Dummy&,
const Dummy&);
90 typedef void (*FunctionDestructor)(
Byte*);
91 typedef bool (*FunctionFilter)(
const Long&);
Definition: Allocator.h:19
static void constructor(Byte *data, const Byte *value)
Definition: Allocator.h:29
Definition: Allocator.h:62
static void destructor(Byte *data)
Definition: Allocator.h:44
Definition: Allocator.h:75
static int comparator(const Dummy &v1, const Dummy &v2)
Definition: Allocator.h:51
unsigned char Byte
Definition: Type.h:64
void(* FunctionConstructor)(Byte *, const Byte *)
Definition: Allocator.h:88