42 template<
typename type_t>
64 template<typename ...args_t>
65 static
xtd::
size combine(args_t... values) noexcept {
return combine_iterator(generate_uniqueness_seed(), values...);}
69 template<
typename type_t,
typename ...args_t>
73 static xtd::size generate_uniqueness_seed() noexcept;
75 xtd::
size hash_code_ = generate_uniqueness_seed();
Combines the hash code for multiple values into a single hash code.
Definition hash_code.hpp:26
xtd::size get_hash_code() const noexcept override
Serves as a hash function for a particular type.
xtd::size to_hash_code() const noexcept
Calculates the final hash code after consecutive xtd::hash_code::add invocations.
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::size combine(args_t... values) noexcept
Combines values into a hash code.
Definition hash_code.hpp:65
hash_code & add(const type_t value) noexcept
Adds a single value to the hash code.
Definition hash_code.hpp:43
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:42
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
@ other
The operating system is other.
Contains xtd::collections::generic::helpers::hasher struct.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::object class.
Implements a function object for hashing data.
Definition hasher.hpp:38