1 #ifndef Protium_CreationPolicies_h_
2 #define Protium_CreationPolicies_h_
22 template<
template<
class>
class Alloc>
45 void* p = malloc(
sizeof(T));
77 return new(&staticMemory_) T;
88 #endif //File Guardian
static Alloc< T > allocator
The allocator for all of these type classes.
static T * Create()
Creates instance.
Helper struct to create static instances of classes.
Used to determine max type size.
static void Destroy(T *p)
Destroys instance.
Helper struct to create instances with malloc, and deallocate with free.
static void Destroy(T *p)
int(Test::* pMemberFn_)(int)
static T * Create()
Creates instance.
static void Destroy(T *p)
static void Destroy(T *p)
Destroys instance.