mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Lot of changes
This commit is contained in:
parent
db1cfb675c
commit
3436b47544
43 changed files with 1249 additions and 123 deletions
|
@ -112,8 +112,20 @@ int HashCode< float >( const float& key )
|
|||
return *( int * )&key;
|
||||
}
|
||||
|
||||
template<>
|
||||
int HashCode< double >( const double& key )
|
||||
{
|
||||
return *( int * )&key;
|
||||
}
|
||||
|
||||
template<>
|
||||
int HashCode< str >( const str& key )
|
||||
{
|
||||
return HashCode< const char * >( key.c_str() );
|
||||
}
|
||||
|
||||
template<>
|
||||
int HashCode< Vector >( const Vector& key )
|
||||
{
|
||||
return ( int )( ( key[ 0 ] + key[ 1 ] + key[ 2 ] ) / 3 );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue