[#ParseKeyPathElement]
= ParseKeyPathElement
:mrdocs:

Parse a single key path element like &quot;0&quot;, &quot;0&apos;&quot;, or &quot;0h&quot;&period; Returns the derivation index and hardened status, or an error message&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:util/Expected-0b.adoc[util::Expected&lt;KeyPathElement, std::string&gt;]
ParseKeyPathElement(std::span&lt;char const&gt; elem);
----

== Return Value

The parsed element, or an error message on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *elem*
| The textual key path element to parse&period;
|===


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