Files
42_INT_11_ft_containers/headers/ftvector.hpp
2022-06-01 15:41:14 +02:00

35 lines
562 B
C++

#ifndef FTVECTOR_HPP
# define FTVECTOR_HPP
# include "colors.h"
# include <iostream>
# include <string>
# include <memory> // std::allocator
class ftvector {
public:
ftvector();
ftvector( ftvector const & src );
~ftvector();
ftvector & operator=( ftvector const & rhs );
unsigned int size() const;
void push_back(const int & element);
private:
unsigned int _size;
int * _mem_ptr;
std::allocator<int> _allocator;
// static std::string const ftvector::_bar;
};
//std::ostream & operator<<(std::ostream & o, ftvector const & rhs);
#endif