Data Access Library (DAL)
/home/amesfoort/DAL/dal/hdf5/types/issame.h
00001 /* Copyright 2011-2012  ASTRON, Netherlands Institute for Radio Astronomy
00002  * This file is part of the Data Access Library (DAL).
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either 
00007  * version 3 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public 
00015  * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
00016  */
00017 #ifndef DAL_ISSAME_H
00018 #define DAL_ISSAME_H
00019 
00020 namespace dal {
00021 
00026 template<typename T, typename U> class IsSame
00027 {
00028 public:
00029   enum { Is = false };
00030 };
00031 
00032 template<typename T> class IsSame<T, T>
00033 {
00034 public:
00035   enum { Is = true };
00036 };
00037 
00038 }
00039 
00040 #endif
 All Classes Functions Variables Typedefs Friends