Files
cpp07/ex02/Array/Array.hpp
2026-03-23 14:45:44 +01:00

41 lines
1.3 KiB
C++

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Array.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aortigos <aortigos@student.42malaga.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/03/23 14:28:55 by aortigos #+# #+# */
/* Updated: 2026/03/23 14:28:55 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef ARRAY_HPP
# define ARRAY_HPP
# include <iostream>
# include <cstdlib>
# include <ctime>
template <typename T>
class Array
{
private:
T *data;
unsigned int length;
public:
Array();
Array(const Array &other);
Array& operator=(const Array &other);
~Array();
Array(unsigned int n);
T &operator[](unsigned int n);
unsigned int size() const;
};
# include "Array.tpp"
#endif