Variable mindspore::kCompareRangeMap

Variable Documentation

template<typename T> const std::map< CompareRange, std::function< bool(T, std::pair< T, T >)> > mindspore::kCompareRangeMap  = {{kIncludeNeither, [](T num1, std::pair<T, T> range) -> bool { return num1 > range.first && num1 < range.second; }},{kIncludeLeft, [](T num1, std::pair<T, T> range) -> bool { return num1 >= range.first && num1 < range.second; }},{kIncludeBoth, [](T num1, std::pair<T, T> range) -> bool { return num1 >= range.first && num1 <= range.second; }},{kIncludeRight, [](T num1, std::pair<T, T> range) -> bool { return num1 > range.first && num1 <= range.second; }}}