This commit is contained in:
Zengtudor 2024-09-17 13:26:29 +08:00
parent 1b6b70eaff
commit 3f256ef270

View File

@ -12,7 +12,7 @@ namespace zt {
private: private:
T _start,_end,_step; T _start,_end,_step;
public: public:
// 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(1,end,1){}