Kagome
Polkadot Runtime Engine in C++17
tools::containers::ObjsCacheDefAlloc< Type > Struct Template Reference

#include <objects_cache.hpp>

Inheritance diagram for tools::containers::ObjsCacheDefAlloc< Type >:
Collaboration diagram for tools::containers::ObjsCacheDefAlloc< Type >:

Public Member Functions

template<typename... __args>
Type * allocate (__args &&...args)
 
void deallocate (Type *obj)
 

Detailed Description

template<typename Type>
struct tools::containers::ObjsCacheDefAlloc< Type >

Default allocator to create objects inside cache.

Template Parameters
Typeof the object to be created
Note
the allocation and construction must be incapsulated

Definition at line 22 of file objects_cache.hpp.

Member Function Documentation

template<typename Type>
template<typename... __args>
Type* tools::containers::ObjsCacheDefAlloc< Type >::allocate ( __args &&...  args)
inline

Definition at line 24 of file objects_cache.hpp.

template<typename Type>
void tools::containers::ObjsCacheDefAlloc< Type >::deallocate ( Type *  obj)
inline

Definition at line 27 of file objects_cache.hpp.


The documentation for this struct was generated from the following file: