diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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; } |