|
| template<typename Integer> |
| constexpr auto | dxx::utils::range (const Integer &to) |
| | Python-like range function ([ 0, to )).
|
| template<typename From, std::convertible_to< From > To> |
| constexpr auto | dxx::utils::range (const From &from, const To &to) |
| | Python-like range function ([ from, to )).
|
| template<typename From, std::convertible_to< From > To, std::convertible_to< From > Step> |
| constexpr auto | dxx::utils::range (const From &from, const To &to, const Step &step) |
| | Python-like range function ([ from, to ) with step step).
|
Utility code that helps working with ranges.