1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-02-26 19:54:14 +01:00

Added comparison functions

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40104
This commit is contained in:
David Anderson 2005-09-13 18:20:37 +00:00
parent 23595d677d
commit 62133463ac
2 changed files with 17 additions and 1 deletions

View File

@ -21,7 +21,6 @@
namespace SourceHook
{
class String
{
public:

View File

@ -15,9 +15,26 @@
*/
#include "sourcehook_impl.h"
#include "sh_tinyhash.h"
namespace SourceHook
{
template<>
SourceHook::HashFunction<int>(const int & k)
{
return k;
}
template<>
SourceHook::Compare<int>(const int & k1, const int & k2)
{
if (k1 == k2)
return 0;
if (k1 > k2)
return 1;
if (k1 < k2)
return -1;
return 0;
}
CSourceHookImpl::CSourceHookImpl()
{
}