[#ParseHex]
= ParseHex
:mrdocs:

Like TryParseHex, but returns an empty vector on invalid input&period;

== Synopsis

Declared in `&lt;util&sol;strencodings&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename Byte = uint8&lowbar;t&gt;
std::vector&lt;Byte&gt;
ParseHex(std::string&lowbar;view hex&lowbar;str);
----

== Return Value

The decoded bytes, or an empty vector if the input is not valid hex&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *hex&lowbar;str*
| The hex string to parse&period;
|===


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