HomeManualTopicsTypesSymbols

std::hash

returns a hash value

Parameter

object
the object to be hashed

Result

hash
an integer hash value

Description

The returned integer number will always be the same for an object. The returned number might not depend on the platform the program is running!

It must be computed from the object's contents solely!

Topics

Math

Objects

Strings

See also

std::equal compares two objects for equality

Implemented by

std_types::character computes a numerical hash value
std_types::device_id returns an integer hash value for a device ID
std_types::directory returns an integer hash value for a directory
std_types::error_number returns an integer hash value for an error number
std_types::file_descriptor returns an integer hash value for a file descriptor
std_types::file_type returns an integer hash value for a file type
std_types::group_id returns an integer hash value for a group ID
std_types::inode_number returns an integer hash value for an inode number
std_types::negative_integer returns an integer hash value
std_types::octet_string returns a numerical hash value
std_types::positive_integer returns an integer hash value
std_types::process_id returns an integer hash value for a process id
std_types::quad_octet_string returns a numerical hash value
std_types::real returns an integer hash value
std_types::shutdown_type returns an integer hash value for a shutdown type
std_types::unique_item returns a numerical hash value
std_types::user_id returns an integer hash value for a user id