mp_units::utility::possibly_within¶
possibly_within overloads
Synopses¶
Declared in <mp-units/utility/uncertain.h>
possibly_within(val, lower_limit, upper_limit, 2)
template<typename Val, typename Lower, typename Upper>
requires detail::BoundedBy<Val, Lower, Upper, uncertain>
[[nodiscard]] constexpr bool possibly_within(Val const& val, Lower const& lower_limit,
Upper const& upper_limit);
Checks whether the expanded uncertainty interval overlaps the limits
[[nodiscard]] constexpr bool possibly_within(
uncertain const& val, value_type const& lower_limit, value_type const& upper_limit,
value_type coverage_factor = static_cast<value_type>(2));
Checks whether the expanded uncertainty interval of a measured quantity, or of a measured point, overlaps the limits
template<typename Val, typename Lower, typename Upper>
requires detail::BoundedBy<Val, Lower, Upper, uncertain>
[[nodiscard]] constexpr bool possibly_within(Val const& val, Lower const& lower_limit,
Upper const& upper_limit,
value_type coverage_factor);
Return Value¶
Note
The return value should not be discarded.
Parameters¶
| Name | Description |
|---|---|
| coverage_factor | The coverage factor, 2 (about 95 %) by default |