home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / wv2 / utilities.h < prev    next >
Encoding:
C/C++ Source or Header  |  2003-08-24  |  1.2 KB  |  38 lines

  1. /* This file is part of the wvWare 2 project
  2.    Copyright (C) 2002-2003 Werner Trobin <trobin@kde.org>
  3.  
  4.    This library is free software; you can redistribute it and/or
  5.    modify it under the terms of the GNU Library General Public
  6.    License version 2 as published by the Free Software Foundation.
  7.  
  8.    This library is distributed in the hope that it will be useful,
  9.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  11.    Library General Public License for more details.
  12.  
  13.    You should have received a copy of the GNU Library General Public License
  14.    along with this library; see the file COPYING.LIB.  If not, write to
  15.    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  16.    Boston, MA 02111-1307, USA.
  17. */
  18.  
  19. #ifndef UTILITIES_H
  20. #define UTILITIES_H
  21.  
  22. #include <algorithm>
  23. #include <functional> // std::unary_function is in this header with gcc 2.9x
  24. #include <string>
  25.  
  26. namespace wvWare
  27. {
  28.     template<class T> struct Delete : public std::unary_function<T*, void>
  29.     {
  30.         void operator() (T* t) const { delete t; }
  31.     };
  32.  
  33.     std::string int2string( int i );
  34.     std::string uint2string( unsigned int i );
  35. }
  36.  
  37. #endif // UTILITIES_H
  38.