Removed redundant code

This commit is contained in:
John Wellbelove 2025-05-21 12:35:43 +01:00
parent 6b14aeec2f
commit b13b2ae93c

View File

@ -46,36 +46,6 @@ SOFTWARE.
namespace etl
{
namespace detail
{
//Helper: only performs the v < F check when has_lower == true ––
template <bool has_lower, typename U, U F>
struct lower_bound_impl;
// Specialisation for First != 0: enforce v >= First
template <typename U, U F>
struct lower_bound_impl<true, U, F>
{
static ETL_CONSTEXPR auto apply(U& v) ETL_NOEXCEPT -> void
{
if (v < F)
{
v = F;
}
}
};
// Specialisation for First == 0: no-op
template <typename U, U F>
struct lower_bound_impl<false, U, F>
{
static ETL_CONSTEXPR auto apply(U&) ETL_NOEXCEPT -> void
{
// nothing
}
};
} // namespace detail
//***************************************************************************
/// Provides a value that cycles between two limits.
//***************************************************************************