Skip to content
Snippets Groups Projects
Commit 1d48dde0 authored by Eric Cano's avatar Eric Cano
Browse files

Added constructor for range.

parent add199b5
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,7 @@ template <typename T>
class range: public std::initializer_list<T> {
public:
range (T begin, T end, T step=1): m_begin(begin), m_end(end), m_step(step) {}
range (T end): range(0, end) {}
class iterator {
private:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment