[#boost-urls-url_view_base-digest] = xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/url_view_base.adoc[url_view_base]::digest :relfileprefix: ../../../ :mrdocs: Calculate a hash of the url == Synopsis Declared in `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/url_view_base.hpp#L129[boost/url/url_view_base.hpp]>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t digest(std::size_t salt = 0) const noexcept; ---- == Description This function calculates a hash of the url as if it were always normalized. === Complexity Linear in `this‐>size()`. === Exception Safety Throws nothing. == Return Value A hash value suitable for use in hash‐based containers. == Parameters |=== | Name | Description | *salt* | An initial value to add to the hash |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#