summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index d567012..7909b6b 100644
--- a/main.cpp
+++ b/main.cpp
@@ -1,9 +1,22 @@
#include "vector.hpp"
+#include <iostream>
int main()
{
ft::vector<int> vec(10);
ft::vector<int> other(vec);
vec = other;
+ 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;
return 0;
}