NEST  2.6.0,not_revisioned_source_dir@0
functional.h
Go to the documentation of this file.
1 /*
2  * functional.h
3  *
4  * This file is part of NEST.
5  *
6  * Copyright (C) 2004 The NEST Initiative
7  *
8  * NEST is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * NEST is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with NEST. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef FUNCTIONAL_H
24 #define FUNCTIONAL_H
25 
26 // template<class T>
27 // T delete_ptr(T p)
28 // {
29 // delete p;
30 // return 0;
31 // }
32 
33 template<class T>
35 {
36  public:
37  T* operator()(T *p)
38  {
39  delete p;
40  return 0;
41  }
42 };
43 #endif
T * operator()(T *p)
Definition: functional.h:37
Definition: functional.h:34
const Name p("p")
current release probability (Tsodyks2_connection)
Definition: nest_names.h:218