Hash< Foam::label > Struct Template Reference

Hash specialization for label. More...

Public Member Functions

unsigned operator() (const label obj, unsigned seed) const
 Incrementally hash a label. More...
unsigned operator() (const label obj) const
 Return the unsigned representation of a label. More...

Detailed Description

struct Foam::Hash< Foam::label >

Hash specialization for label.

Definition at line 68 of file Hash.H.

Member Function Documentation

◆ operator()() [1/2]

unsigned operator() ( const label  obj,
unsigned  seed 
) const

Incrementally hash a label.

This will necessarily return a different value than the non-incremental version.

Definition at line 73 of file Hash.H.

◆ operator()() [2/2]

unsigned operator() ( const label  obj) const

Return the unsigned representation of a label.

This helps if people have relied on the hash value corresponding to the natural order.

Definition at line 81 of file Hash.H.

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