[#boost-urls-url_view_base-digest] = xref:boost/urls/url_view_base/digest.adoc[boost::urls::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 [cols=2] |=== | Name | Description | *salt* | An initial value to add to the hash |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#