42 template<
typename type_t>
69 template<typename ...args_t>
70 static
xtd::
usize combine(args_t... values) noexcept {
return combine_iterator(generate_uniqueness_seed(), values...);}
74 template<
typename type_t,
typename ...args_t>
78 static xtd::usize generate_uniqueness_seed() noexcept;
80 xtd::
usize hash_code_ = generate_uniqueness_seed();
hash_code()=default
Create a new instance of the class hash_code.
bool equals(const xtd::object &other) const noexcept override
Determines whether the specified object is equal to the current object.
static xtd::usize combine(args_t... values) noexcept
Combines values into a hash code.
Definition hash_code.hpp:70
xtd::usize get_hash_code() const noexcept override
Serves as a hash function for a particular type.
hash_code & add(const type_t &value) noexcept
Adds a single value to the hash code.
Definition hash_code.hpp:43
xtd::usize to_hash_code() const noexcept
Calculates the final hash code after consecutive xtd::hash_code::add invocations.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
@ other
The operating system is other.
Definition platform_id.hpp:60
Contains xtd::collections::generic::helpers::hasher struct.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::object class.
Implements a function object for hashing data.
Definition hasher.hpp:40