Skip to content

mp_units::utility::possibly_within

possibly_within(val, lower_limit, upper_limit, 2)

Synopsis

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

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);

Note

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

Return Value

Note

The return value should not be discarded.