/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Span.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: narnaud +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/09/19 08:07:26 by narnaud #+# #+# */ /* Updated: 2022/09/19 08:07:31 by narnaud ### ########.fr */ /* */ /* ************************************************************************** */ #pragma once #include #include #include #include #include #include #include class Span { std::vector _vec; unsigned int _capacity; public: Span(); Span(unsigned int N); Span(Span const &sp); ~Span(); Span &operator=(Span const &sp); void addNumber(int nb); unsigned int shortestSpan(); unsigned int longestSpan(); void addNRandom(unsigned int N); void addRange(std::vector::iterator begin, std::vector::iterator end); };