[#mp_units-utility-operator_plus-01] = xref:mp_units.adoc[mp_units]::xref:mp_units/utility.adoc[utility]::operator+ :relfileprefix: ../../ :mrdocs: Computes the sum of `lhs` and `rhs.` == Synopsis Declared in `<mp‐units/utility/safe_int.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] constexpr xref:mp_units/utility/safe_int-07.adoc[safe_int</* implementation-defined */, ErrorPolicy>] operator+( xref:mp_units/utility/safe_int-07.adoc[safe_int] lhs, xref:mp_units/utility/safe_int-07.adoc[safe_int] rhs); ---- == Return Value the sum of `lhs` and `rhs`; triggers `ErrorPolicy::on_overflow` on overflow [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *lhs* | the first value to add | *rhs* | the second value to add |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#