efl::eina::malloc_clone_allocator Struct Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files
- Examples

- Data Structures
- Data Structure Index
- Class Hierarchy
- Data Fields

Static Public Member Functions
efl::eina::malloc_clone_allocator Struct Reference
Eina C++Eina C++ » | Data Types » Containers » Clone Allocators Eina C++Eina C++ » | Data Types » | Containers

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.