42_CPP08/ex01/Span.hpp

23 lines
394 B
C++
Raw Normal View History

2023-09-26 09:14:25 -04:00
#pragma once
#include <vector>
class Span
{
private:
unsigned int _size;
std::vector<int> _vector;
Span();
public:
Span(unsigned int N);
Span(const Span& src);
~Span();
Span& operator=(const Span& src);
int shortestSpan() const;
int longestSpan() const;
void addNumber(const int nb);
};