ANNA Suite  2020b
Multipurpose development suite for Telco applications
Static Public Member Functions | List of all members
anna::Allocator< T > Class Template Reference

#include <Allocator.hpp>

Static Public Member Functions

static T * create ()
 
static void destroy (T *t)
 

Detailed Description

template<typename T>
class anna::Allocator< T >

Parameters
TClase asociada a este ubicador. Debe tener un constructor vacio.
See also
Recycler

Member Function Documentation

◆ create()

template<typename T >
static T* anna::Allocator< T >::create ( )
inlinestatic

Creacion de una instancia de tipo T.

Returns
Una nueva instancia del tipo T.
25 { return new T; }

◆ destroy()

template<typename T >
static void anna::Allocator< T >::destroy ( T *  t)
inlinestatic

Libera los recursos asociados a la instancia recibida como parametro.

Parameters
tInstancia que vamos a liberar.
31 { delete t; }

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