Files
cpp07/ex02/Array/Array.hpp
aortigos 582f5ad276 Fixes
2026-03-23 09:56:09 +01:00

43 lines
1.3 KiB
C++

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Array.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aortigos <aortigos@student.42malaga.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/03/21 17:04:01 by aortigos #+# #+# */
/* Updated: 2026/03/21 17:04:01 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 _size;
public:
Array();
Array(unsigned int n);
Array(const Array &other);
Array &operator=(const Array &other);
~Array();
T &operator[](unsigned int i);
T const &operator[](unsigned int i) const;
unsigned int size() const;
};
#include "Array.tpp"
#endif