[#boost-urls-url_view_base-digest]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/url_view_base.adoc[url&lowbar;view&lowbar;base]::digest
:relfileprefix: ../../../
:mrdocs:


Calculate a hash of the url

== Synopsis


Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/url_view_base.hpp#L129[boost&sol;url&sol;url&lowbar;view&lowbar;base&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::size&lowbar;t
digest(std::size&lowbar;t salt = 0) const noexcept;
----

== Description


This function calculates a hash of the        url as if it were always normalized&period;


=== Complexity

Linear in `this&hyphen;&gt;size()`&period;


=== Exception Safety

Throws nothing&period;



== Return Value


A hash value suitable for use        in hash&hyphen;based containers&period;



== Parameters


|===
| Name | Description

| *salt*
| An initial value to add to        the hash


|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
