summaryrefslogtreecommitdiff
path: root/main.cpp
blob: bd8c700f7a03e1ecf5e31d096996800538e186c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "vector.hpp"
#include <iostream>

int main()
{
	ft::vector<int> vec(10);
	ft::vector<int> other(vec);
	vec = other;
	std::cout << (vec == other) << std::endl;
	other.assign(ft::vector<int>::size_type(5), 3);
	for (ft::vector<int>::size_type i = 0; i < other.size(); i++)
		std::cout << other.at(i) << std::endl;
	std::cout << std::endl;
	other.push_back(6);
	other.push_back(8);
	for (ft::vector<int>::size_type i = 0; i < other.size(); i++)
		std::cout << other.at(i) << std::endl;
	std::cout << std::endl;
	other.pop_back();
	for (ft::vector<int>::size_type i = 0; i < other.size(); i++)
		std::cout << other.at(i) << std::endl;
	std::cout << (vec == other) << std::endl;
	return 0;
}