DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
DotNetDupe::System::HashHelper< T > Struct Template Reference

Primary template for generating 32-bit hash codes from arbitrary types using byte-level folding. More...

#include <HashHelper.h>

Static Public Member Functions

static int GetHashCode (const T &value)
 Computes a 32-bit hash code for the specified value.

Detailed Description

template<typename T>
struct DotNetDupe::System::HashHelper< T >

Primary template for generating 32-bit hash codes from arbitrary types using byte-level folding.

Template Parameters
TThe value type to hash. Standard Citation: ECMA-335 CLI Common Language Infrastructure.

Definition at line 21 of file HashHelper.h.

Member Function Documentation

◆ GetHashCode()

template<typename T>
int DotNetDupe::System::HashHelper< T >::GetHashCode ( const T & value)
inlinestatic

Computes a 32-bit hash code for the specified value.

Parameters
valueThe value to hash.
Returns
A 32-bit signed integer hash code.

Definition at line 25 of file HashHelper.h.

Referenced by DotNetDupe::System::Collections::Generic::Dictionary< TKey, TValue >::Remove().


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