Static Public Member Functions
efl::eina::malloc_clone_allocator Struct Reference

Manages allocation and deallocation of memory using the function malloc and free. More...

Static Public Member Functions

template<typename T >
static T * allocate_clone (T const &v)
 
template<typename T >
static void deallocate_clone (T const *p)
 

Detailed Description

Manages allocation and deallocation of memory using the function malloc and free.

This allocator does not calls constructors, the content of the newly allocated objects are assigned using memcpy, so it has to be used with types that have standard-layout.