carb::hashScalar

Defined in carb/Defines.h

template<class T>
constexpr uint64_t carb::hashScalar(const T &type, uint64_t hash = kFnvBasis)

Runtime FNV-1a 64-bit hash of a scalar type.

Parameters
  • type – An scalar to hash.

  • hash – The previous hash value or starting hash basis.

Returns

A hash computed from the given parameters.