This commit is contained in:
Zengtudor 2024-09-17 17:38:17 +08:00
parent 9ada64b0c1
commit 1e6bc31f97

View File

@ -15,7 +15,7 @@ namespace zt {
constexpr Range()=delete; constexpr Range()=delete;
constexpr Range(const T start,const T end,const T step)noexcept:_start(start),_end(end),_step(step){} constexpr Range(const T start,const T end,const T step)noexcept:_start(start),_end(end),_step(step){}
constexpr Range(const T start,const T end)noexcept:Range(start,end,1){} constexpr Range(const T start,const T end)noexcept:Range(start,end,1){}
constexpr Range(const T end)noexcept:Range(1,end,1){} constexpr Range(const T end)noexcept:Range(0,end,1){}
struct Iterator{ struct Iterator{
T current; T current;