ReactOS 0.4.15-dev-8002-gbbb3b00
_hash_fun.h File Reference
#include <stl/_cstddef.h>
Include dependency graph for _hash_fun.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  hash< _Key >
 
struct  hash< char * >
 
struct  hash< const char * >
 
struct  hash< char >
 
struct  hash< unsigned char >
 
struct  hash< signed char >
 
struct  hash< short >
 
struct  hash< unsigned short >
 
struct  hash< int >
 
struct  hash< unsigned int >
 
struct  hash< long >
 
struct  hash< unsigned long >
 
struct  hash< void * >
 
union  hash< void * >::__vp
 

Functions

_STLP_MOVE_TO_PRIV_NAMESPACE size_t __stl_hash_string (const char *__s)
 

Function Documentation

◆ __stl_hash_string()

_STLP_MOVE_TO_PRIV_NAMESPACE size_t __stl_hash_string ( const char __s)
inline

Definition at line 44 of file _hash_fun.h.

44 {
46 unsigned long __h = 0;
47 for ( ; *__s; ++__s)
48 __h = 5*__h + *__s;
49
50 return size_t(__h);
51}
__kernel_size_t size_t
Definition: linux.h:237
#define _STLP_FIX_LITERAL_BUG(__x)
Definition: features.h:301

Referenced by hash< char * >::operator()(), and hash< const char * >::operator()().