35 lines
562 B
C++
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
|
|
|