00001 00002 /* --------------------------------------------------------------------------- 00003 commonc++ - A C++ Common Class Library 00004 Copyright (C) 2005-2012 Mark A Lindner 00005 00006 This file is part of commonc++. 00007 00008 This library is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU Library General Public 00010 License as published by the Free Software Foundation; either 00011 version 2 of the License, or (at your option) any later version. 00012 00013 This library is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 Library General Public License for more details. 00017 00018 You should have received a copy of the GNU Library General Public 00019 License along with this library; if not, write to the Free 00020 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00021 --------------------------------------------------------------------------- 00022 */ 00023 00024 #ifndef __ccxx_DeleteFunctor_hxx 00025 #define __ccxx_DeleteFunctor_hxx 00026 00027 #include <commonc++/Common.h++> 00028 00029 namespace ccxx { 00030 00044 struct DeleteFunctor 00045 { 00046 template <typename T> void operator()(T *obj) const throw() 00047 { delete obj; } 00048 }; 00049 00050 }; // namespace ccxx 00051 00052 #endif // __ccxx_DeleteFunctor_hxx 00053 00054 /* end of header file */
1.6.3