4#ifndef TETL_UTILITY_IN_RANGE_HPP
5#define TETL_UTILITY_IN_RANGE_HPP
7#include <etl/_concepts/builtin_integer.hpp>
8#include <etl/_limits/numeric_limits.hpp>
9#include <etl/_utility/cmp_greater_equal.hpp>
10#include <etl/_utility/cmp_less_equal.hpp>
20template <builtin_integer R, builtin_integer T>
21[[nodiscard]]
constexpr auto in_range(T t)
noexcept ->
bool
24 return etl::cmp_greater_equal(t, limits::min())
and etl::cmp_less_equal(t, limits::max());
constexpr auto in_range(T t) noexcept -> bool
Returns true if the value of t is in the range of values that can be represented in R,...
Definition in_range.hpp:21
Definition adjacent_find.hpp:9
Definition numeric_limits.hpp:18