ot::NetworkData::IsRoutePreferenceValid() function
Indicates whether a given `int8_t` preference value is a valid route preference (i.e., one of the values from `RoutePreference` enumeration).
Syntax
inline bool IsRoutePreferenceValid(int8_t aPref); Arguments
aPref
The signed route preference value.
Return value
TRUE if @p aPref is valid. FALSE if @p aPref is not valid