d08 ex01 change addnumber(range) to match official container way of doing it

This commit is contained in:
hugogogo
2022-03-14 11:18:25 +01:00
parent 685806cdfd
commit 2f90a1ee13
4 changed files with 26 additions and 8 deletions

View File

@@ -17,7 +17,9 @@ public:
Span & operator=( Span const & rhs );
void addNumber(int nb);
void addNumber(int * arr, unsigned int size);
// void addNumber(int * arr, unsigned int size);
template <class InputIterator>
void addNumber(InputIterator first, InputIterator last);
unsigned int shortestSpan();
unsigned int longestSpan();