[#AdditionOverflow]
= AdditionOverflow
:mrdocs:

Test whether the sum of two integers would overflow&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;std::integral T&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
bool
AdditionOverflow(
    T const i,
    T const j) noexcept;
----

== Return Value

true if `i &plus; j` would fall outside the representable range of T, false otherwise&period;

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

[cols="1,4"]
|===
| Name| Description
| *i*
| The first addend&period;
| *j*
| The second addend&period;
|===


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