[#mp_units-operator_plus-0a]
= xref:mp_units.adoc[mp&lowbar;units]::operator&plus;
:relfileprefix: ../
:mrdocs:

Unary plus operators

== Synopses

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

Unary plus operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/constrained.adoc[constrained&lt;decltype(&plus;std&colon;&colon;declval&lt;T&gt;()), ErrorPolicy&gt;]
xref:mp_units/operator_plus-08b.adoc[operator&plus;](xref:mp_units/constrained.adoc[constrained] const& x);
----

[.small]#xref:mp_units/operator_plus-08b.adoc[_» more&period;&period;&period;_]#

Addition operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/safe_int-09.adoc[safe&lowbar;int&lt;&sol;&ast; implementation-defined &ast;&sol;, ErrorPolicy&gt;]
xref:mp_units/operator_plus-0204.adoc[operator&plus;](
    U lhs,
    xref:mp_units/safe_int-09.adoc[safe&lowbar;int] rhs);
----

[.small]#xref:mp_units/operator_plus-0204.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
auto
xref:mp_units/operator_plus-04.adoc[operator&plus;](
    U lhs,
    xref:mp_units/safe_int-09.adoc[safe&lowbar;int] rhs)
requires requires &lcub; lhs &plus; static&lowbar;cast&lt;U&gt;(rhs&period;value&lowbar;)&semi; &rcub;;
----

[.small]#xref:mp_units/operator_plus-04.adoc[_» more&period;&period;&period;_]#

Addition operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/safe_int-09.adoc[safe&lowbar;int&lt;&sol;&ast; implementation-defined &ast;&sol;, ErrorPolicy&gt;]
xref:mp_units/operator_plus-0b.adoc[operator&plus;](
    xref:mp_units/safe_int-09.adoc[safe&lowbar;int] lhs,
    U rhs);
----

[.small]#xref:mp_units/operator_plus-0b.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
auto
xref:mp_units/operator_plus-0c.adoc[operator&plus;](
    xref:mp_units/safe_int-09.adoc[safe&lowbar;int] lhs,
    U rhs)
requires requires &lcub; static&lowbar;cast&lt;U&gt;(lhs&period;value&lowbar;) &plus; rhs&semi; &rcub;;
----

[.small]#xref:mp_units/operator_plus-0c.adoc[_» more&period;&period;&period;_]#

Addition operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/safe_int-09.adoc[safe&lowbar;int&lt;&sol;&ast; implementation-defined &ast;&sol;, ErrorPolicy&gt;]
xref:mp_units/operator_plus-062.adoc[operator&plus;](
    xref:mp_units/safe_int-09.adoc[safe&lowbar;int] lhs,
    xref:mp_units/safe_int-09.adoc[safe&lowbar;int] rhs);
----

[.small]#xref:mp_units/operator_plus-062.adoc[_» more&period;&period;&period;_]#

Addition operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/safe_int-09.adoc[safe&lowbar;int&lt;&sol;&ast; implementation-defined &ast;&sol;, ErrorPolicy&gt;]
xref:mp_units/operator_plus-088.adoc[operator&plus;](
    xref:mp_units/safe_int-09.adoc[safe&lowbar;int] lhs,
    xref:mp_units/constrained.adoc[constrained&lt;U, CP&gt;] rhs);
----

[.small]#xref:mp_units/operator_plus-088.adoc[_» more&period;&period;&period;_]#

Addition operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/constrained.adoc[constrained&lt;decltype(std&colon;&colon;declval&lt;T&gt;() &plus; std&colon;&colon;declval&lt;U&gt;()), CP&gt;]
xref:mp_units/operator_plus-08a.adoc[operator&plus;](
    xref:mp_units/safe_int-09.adoc[safe&lowbar;int] lhs,
    xref:mp_units/constrained.adoc[constrained&lt;U, CP&gt;] const& rhs);
----

[.small]#xref:mp_units/operator_plus-08a.adoc[_» more&period;&period;&period;_]#

Addition operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/safe_int-09.adoc[safe&lowbar;int&lt;&sol;&ast; implementation-defined &ast;&sol;, ErrorPolicy&gt;]
xref:mp_units/operator_plus-065.adoc[operator&plus;](
    xref:mp_units/constrained.adoc[constrained&lt;U, CP&gt;] lhs,
    xref:mp_units/safe_int-09.adoc[safe&lowbar;int] rhs);
----

[.small]#xref:mp_units/operator_plus-065.adoc[_» more&period;&period;&period;_]#

Addition operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/basic_fixed_string-08.adoc[basic&lowbar;fixed&lowbar;string&lt;CharT, 1 &plus; N&gt;]
xref:mp_units/operator_plus-07.adoc[operator&plus;](
    CharT const lhs,
    xref:mp_units/basic_fixed_string-08.adoc[basic&lowbar;fixed&lowbar;string] const& rhs) noexcept;
----

[.small]#xref:mp_units/operator_plus-07.adoc[_» more&period;&period;&period;_]#

Addition operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/basic_fixed_string-08.adoc[basic&lowbar;fixed&lowbar;string&lt;CharT, N &plus; 1&gt;]
xref:mp_units/operator_plus-0e3.adoc[operator&plus;](
    xref:mp_units/basic_fixed_string-08.adoc[basic&lowbar;fixed&lowbar;string] const& lhs,
    CharT rhs) noexcept;
----

[.small]#xref:mp_units/operator_plus-0e3.adoc[_» more&period;&period;&period;_]#

Addition operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/basic_fixed_string-08.adoc[basic&lowbar;fixed&lowbar;string&lt;CharT, N &plus; N2&gt;]
xref:mp_units/operator_plus-0e6.adoc[operator&plus;](
    xref:mp_units/basic_fixed_string-08.adoc[basic&lowbar;fixed&lowbar;string] const& lhs,
    xref:mp_units/basic_fixed_string-08.adoc[basic&lowbar;fixed&lowbar;string&lt;CharT, N2&gt;] const& rhs) noexcept;
----

[.small]#xref:mp_units/operator_plus-0e6.adoc[_» more&period;&period;&period;_]#

Addition operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
consteval
xref:mp_units/basic_fixed_string-08.adoc[basic&lowbar;fixed&lowbar;string&lt;CharT, N &plus; N2 &hyphen; 1&gt;]
xref:mp_units/operator_plus-0ec.adoc[operator&plus;](
    xref:mp_units/basic_fixed_string-08.adoc[basic&lowbar;fixed&lowbar;string] const& lhs,
    CharT const(& rhs)[N2]) noexcept;
----

[.small]#xref:mp_units/operator_plus-0ec.adoc[_» more&period;&period;&period;_]#

Addition operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/symbol_text-032.adoc[symbol&lowbar;text&lt;N &plus; N2, M &plus; M2&gt;]
xref:mp_units/operator_plus-0e1.adoc[operator&plus;](
    xref:mp_units/symbol_text-032.adoc[symbol&lowbar;text] const& lhs,
    xref:mp_units/symbol_text-032.adoc[symbol&lowbar;text&lt;N2, M2&gt;] const& rhs);
----

[.small]#xref:mp_units/operator_plus-0e1.adoc[_» more&period;&period;&period;_]#

Addition operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/constrained.adoc[constrained&lt;decltype(std&colon;&colon;declval&lt;U&gt;() &plus; std&colon;&colon;declval&lt;T&gt;()), CP&gt;]
xref:mp_units/operator_plus-0203.adoc[operator&plus;](
    xref:mp_units/constrained.adoc[constrained&lt;U, CP&gt;] const& lhs,
    xref:mp_units/safe_int-09.adoc[safe&lowbar;int] rhs);
----

[.small]#xref:mp_units/operator_plus-0203.adoc[_» more&period;&period;&period;_]#

Addition operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
consteval
xref:mp_units/basic_fixed_string-08.adoc[basic&lowbar;fixed&lowbar;string&lt;CharT, N1 &plus; N &hyphen; 1&gt;]
xref:mp_units/operator_plus-067.adoc[operator&plus;](
    CharT const(& lhs)[N1],
    xref:mp_units/basic_fixed_string-08.adoc[basic&lowbar;fixed&lowbar;string] const& rhs) noexcept;
----

[.small]#xref:mp_units/operator_plus-067.adoc[_» more&period;&period;&period;_]#


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