[#BloombergLP-bslh-hashAppend-08c] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslh.adoc[bslh]::hashAppend :relfileprefix: ../../ :mrdocs: Append a filesystem path to a hash algorithm. == Synopsis Declared in `<bslh_filesystem.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class HASHALG> void hashAppend( HASHALG& hashAlg, std::filesystem::path const& path); ---- == Description Pass the specified `path` to the specified `hashAlg` hashing algorithm of the (template parameter) type `HASHALG`. Note that this function violates the BDE coding standard, adding a function for a namespace for a different package, and none of the function parameters are from this package either. This is necessary in order to provide an implementation of `bslh::hashAppend` for the (native) standard library `std::filesystem::path` type as we are not allowed to add overloads directly into namespace `std`. Also note that this will NOT be found by the compiler if `HASHALG` is not in `BloombergLP::bslh`. == Parameters [cols="1,4"] |=== | Name| Description | *hashAlg* | hashing algorithm that receives the path hash input | *path* | filesystem path whose hash value is appended |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#