Panda3D
Static Public Member Functions | List of all members
integer_hash< Key, Compare > Class Template Reference

This is the default hash_compare class, which assumes the Key is a size_t value or can be implicitly converted to a size_t value (for instance, via a size_t typecast operator). More...

#include "stl_compares.h"

Inheritance diagram for integer_hash< Key, Compare >:
stl_hash_compare< Key, Compare >

Static Public Member Functions

static size_t add_hash (size_t start, const Key &key)
 Adds the indicated key into a running hash. More...
 

Additional Inherited Members

- Public Member Functions inherited from stl_hash_compare< Key, Compare >
bool is_equal (const Key &a, const Key &b) const
 
size_t operator() (const Key &key) const
 
bool operator() (const Key &a, const Key &b) const
 

Detailed Description

template<class Key, class Compare = std::less<Key>>
class integer_hash< Key, Compare >

This is the default hash_compare class, which assumes the Key is a size_t value or can be implicitly converted to a size_t value (for instance, via a size_t typecast operator).

It is the same as the system-provided hash_compare.

Definition at line 122 of file stl_compares.h.

Member Function Documentation

◆ add_hash()

template<class Key , class Compare >
size_t integer_hash< Key, Compare >::add_hash ( size_t  start,
const Key &  key 
)
inlinestatic

Adds the indicated key into a running hash.

Definition at line 101 of file stl_compares.I.

References AddHash::add_hash().


The documentation for this class was generated from the following files: