40 CPP_assert(std::is_arithmetic<T>());
50 constexpr T read()
const noexcept
60 bool const eq = n_ == other.n_;
61 RANGES_DIAGNOSTIC_PUSH
62 RANGES_DIAGNOSTIC_IGNORE_FLOAT_EQUAL
63 RANGES_EXPECT(to_ == other.to_);
64 RANGES_EXPECT(!eq || from_ == other.from_);
68 constexpr void next()
noexcept
70 RANGES_EXPECT(n_ > 0);
78 from_ = T(to_ - (delta_ * Calc(n_ - 1)));
87 , delta_(n > 1 ? (to - from) / Calc(n - 1) : 0)
90 RANGES_EXPECT(n_ > 0);
91 RANGES_EXPECT(to_ >= from_);
93 constexpr std::size_t size()
const noexcept
95 return static_cast<std::size_t
>(n_);
typename detail::_cond< If >::template invoke< Then, Else > conditional_t
Select one type or another depending on a compile-time Boolean.
Definition meta.hpp:1148