[#mp_units-utility-parse_nonnegative_int]
= xref:mp_units.adoc[mp&lowbar;units]::xref:mp_units/utility.adoc[utility]::parse&lowbar;nonnegative&lowbar;int
:relfileprefix: ../../
:mrdocs:

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;utility&sol;format&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;std::forward&lowbar;iterator It&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
int
parse&lowbar;nonnegative&lowbar;int(
    It& begin,
    It end,
    int error&lowbar;value);
----

== Return Value

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====

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