00001 00002 00003 00004 00005 00006 00007 // =========================================================== 00008 // 00009 // Copyright (C) 2005-2007, all rights reserved by 00010 // - Institute of Telematics, Universitaet Karlsruhe (TH) 00011 // 00012 // More information and contact: 00013 // https://projekte.tm.uka.de/trac/NSIS 00014 // 00015 // This program is free software; you can redistribute it and/or modify 00016 // it under the terms of the GNU General Public License as published by 00017 // the Free Software Foundation; version 2 of the License 00018 // 00019 // This program is distributed in the hope that it will be useful, 00020 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00021 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00022 // GNU General Public License for more details. 00023 // 00024 // You should have received a copy of the GNU General Public License along 00025 // with this program; if not, write to the Free Software Foundation, Inc., 00026 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00027 // 00028 // =========================================================== 00029 00030 #ifndef PROTLIB_LL_HASHERS_H 00031 #define PROTLIB_LL_HASHERS_H 00032 00033 00042 namespace __gnu_cxx { 00043 00045 template <> struct hash<long long> { 00046 inline size_t operator()(long long i) const { return (size_t)i; } 00047 }; // end long long hasher 00048 00050 template <> struct hash<unsigned long long> { 00051 inline size_t operator()(unsigned long long i) const { return (size_t)i; } 00052 }; // end unsigned long long hasher 00053 00054 } // end namespace __gnu_cxx 00055 00056 00058 00059 #endif