cds  2.3.2
cds::intrusive::feldman_hashset::hash_size< Size > Struct Template Reference

Hash size option. More...

#include <cds/intrusive/details/feldman_hashset_base.h>

Detailed Description

template<size_t Size>
struct cds::intrusive::feldman_hashset::hash_size< Size >

Hash size option.

By default, the size of hash value is sizeof( hash_type ). Sometimes it is not correct, for example, for that 6-byte struct static_assert will be thrown:

struct key_type {
uint32_t key1;
uint16_t subkey;
};
static_assert( sizeof( key_type ) == 6, "Key type size mismatch" );

For that case you can specify hash_size explicitly.

Value 0 means sizeof( hash_type ).


The documentation for this struct was generated from the following file:

cds 2.3.2 Developed by Maxim Khizhinsky aka khizmax and other contributors 2007 - 2017
Autogenerated Sun Dec 31 2017 12:10:43 by Doxygen 1.8.13