ANNA Suite
2020b
Multipurpose development suite for Telco applications
include
anna
core
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
anna::Allocator::destroy
static void destroy(T *t)
Definition:
Allocator.hpp:31
anna::Allocator
Definition:
Allocator.hpp:19
anna
Definition:
app.hpp:12
anna::Allocator::create
static T * create()
Definition:
Allocator.hpp:25
Generated on Mon Oct 30 2023 12:15:31 for ANNA Suite by
1.8.13