Ponca  292d8d7132745e0d4242ff9a01e93697fc96b204
Point Cloud Analysis library
Loading...
Searching...
No Matches
Ponca::HashDefaultFunctor< N, T > Struct Template Reference
Collaboration diagram for Ponca::HashDefaultFunctor< N, T >:

Static Public Member Functions

static constexpr T hash (const int _x)
 The default hashing function : (abs(x) * 2654435761u) % N.

Detailed Description

template<int N, typename T = int>
struct Ponca::HashDefaultFunctor< N, T >

Definition at line 18 of file hashset.h.

Member Function Documentation

◆ hash()

template<int N, typename T = int>
constexpr T Ponca::HashDefaultFunctor< N, T >::hash ( const int _x)
inlinestaticnodiscardconstexpr

The default hashing function : (abs(x) * 2654435761u) % N.

Definition at line 21 of file hashset.h.