ANNA Suite  2020b
Multipurpose development suite for Telco applications
Allocator.hpp
Go to the documentation of this file.
1 // ANNA - Anna is Not Nothingness Anymore //
2 // //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
4 // //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
7 
8 
9 #ifndef anna_core_Allocator_hpp
10 #define anna_core_Allocator_hpp
11 
12 namespace anna {
13 
19 template <typename T> class Allocator {
20 public:
25  static T* create() { return new T; }
26 
31  static void destroy(T* t) { delete t; }
32 };
33 
34 }
35 
36 #endif
static void destroy(T *t)
Definition: Allocator.hpp:31
Definition: Allocator.hpp:19
Definition: app.hpp:12
static T * create()
Definition: Allocator.hpp:25