Skip to content

mp_units::utility::certainly_within

certainly_within overloads

Synopses

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

certainly_within(val, lower_limit, upper_limit, 2)

template<typename Val, typename Lower, typename Upper>
  requires detail::BoundedBy<Val, Lower, Upper, uncertain>
[[nodiscard]] constexpr bool certainly_within(Val const& val, Lower const& lower_limit,
                                              Upper const& upper_limit);

» more...

Checks whether the whole expanded uncertainty interval lies within the limits

[[nodiscard]] constexpr bool certainly_within(
  uncertain const& val, value_type const& lower_limit, value_type const& upper_limit,
  value_type coverage_factor = static_cast<value_type>(2));

» more...

Checks whether the whole expanded uncertainty interval of a measured quantity, or of a measured point, lies within the limits

template<typename Val, typename Lower, typename Upper>
  requires detail::BoundedBy<Val, Lower, Upper, uncertain>
[[nodiscard]] constexpr bool certainly_within(Val const& val, Lower const& lower_limit,
                                              Upper const& upper_limit,
                                              value_type coverage_factor);

» more...

Return Value

Note

The return value should not be discarded.

Parameters

NameDescription
coverage_factorThe coverage factor, 2 (about 95 %) by default