Skip to content

mp_units::utility::operator+

Addition of two uncertain values

Synopsis

Declared in <mp-units/utility/uncertain.h>

[[nodiscard]] constexpr uncertain operator+(uncertain const& lhs, uncertain const& rhs);

Note

This function is a hidden friend of uncertain, declared only inside that class: it can be found only through argument-dependent lookup.

Description

NOTE

Assumes independent values. Formula: σ² = σx² + σy²

Return Value

Note

The return value should not be discarded.

Parameters

NameDescription
lhsThe left operand
rhsThe right operand