std::filesystem::hash_value (3) - Linux Manuals
std::filesystem::hash_value: std::filesystem::hash_value
Command to display std::filesystem::hash_value
manual in Linux: $ man 3 std::filesystem::hash_value
NAME
std::filesystem::hash_value - std::filesystem::hash_value
Synopsis
Defined in header <filesystem>
std::size_t hash_value( const path& p ) noexcept; (since C++17)
Parameters
p - a std::filesystem::path object
Return value
A hash value such that if for two paths, p1 == p2 then hash_value(p1) == hash_value(p2).
Notes
Equality of two paths is determined by comparing each component separately, so, for example "a//b" equals "a/b" and has the same hash_value
hash_value originates from the boost.filesystem library where it was used for interoperability with boost.hash (which calls_hash_value where available)
Example
This section is incomplete
Reason: no example
See also
compares the lexical representations of two paths lexicographically
compare (public member function)
hash hash function object
(class template)
(C++11)
Pages related to std::filesystem::hash_value
- std::filesystem::hard_link_count (3) - std::filesystem::hard_link_count
- std::filesystem::absolute (3) - std::filesystem::absolute
- std::filesystem::begin(directory_iterator),std::filesystem::end(directory_iterator) (3) - std::filesystem::begin(directory_iterator),std::filesystem::end(directory_iterator)
- std::filesystem::begin(recursive_directory_iterator), (3) - std::filesystem::begin(recursive_directory_iterator),
- std::filesystem::begin(recursive_directory_iterator),std::filesystem::end(recursive_directory_iterator) (3) - std::filesystem::begin(recursive_directory_iterator),std::filesystem::end(recursive_directory_iterator)
- std::filesystem::canonical,std::filesystem::weakly_canonical (3) - std::filesystem::canonical,std::filesystem::weakly_canonical
- std::filesystem::copy (3) - std::filesystem::copy
- std::filesystem::copy_file (3) - std::filesystem::copy_file
- std::filesystem::copy_options (3) - std::filesystem::copy_options
- std::filesystem::copy_symlink (3) - std::filesystem::copy_symlink
- std::filesystem::create_directory,std::filesystem::create_directories (3) - std::filesystem::create_directory,std::filesystem::create_directories
- std::filesystem::create_hard_link (3) - std::filesystem::create_hard_link
- std::filesystem::create_symlink,std::filesystem::create_directory_symlink (3) - std::filesystem::create_symlink,std::filesystem::create_directory_symlink
- std::filesystem::current_path (3) - std::filesystem::current_path
- std::filesystem::directory_entry (3) - std::filesystem::directory_entry
- std::filesystem::directory_entry::assign (3) - std::filesystem::directory_entry::assign
- std::filesystem::directory_entry::directory_entry (3) - std::filesystem::directory_entry::directory_entry
- std::filesystem::directory_entry::exists (3) - std::filesystem::directory_entry::exists
- std::filesystem::directory_entry::file_size (3) - std::filesystem::directory_entry::file_size
- std::filesystem::directory_entry::hard_link_count (3) - std::filesystem::directory_entry::hard_link_count
- std::filesystem::directory_entry::is_block_file (3) - std::filesystem::directory_entry::is_block_file