diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d3620c2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.vscode +.xmake +build \ No newline at end of file diff --git a/src/replaceStr/main.cpp b/src/replaceStr/main.cpp new file mode 100644 index 0000000..cd001da --- /dev/null +++ b/src/replaceStr/main.cpp @@ -0,0 +1,47 @@ +#include +#include + +template +void print(const Args&...args){ + std::stringstream ss; + ((ss< +class Range{ +private: + T _start,_end,_step; +public: + Range(const T start,const T end){Range(start,end,1);} + Range(const T start,const T end,const T step):_start(start),_end(end),_step(step){} + + struct Iterator{ + T current; + T step; + Iterator()=delete; + Iterator(const T start)noexcept{Iterator(start,1);} + Iterator(const T start,const T step)noexcept:current(start),step(step){} + bool operator!=(const Iterator &other)const noexcept{ + return current