#include "vector.hpp" #include #include #include using namespace ft; void print(const int& n) { std::cout << n << std::endl; } int main() { vector vec(10); vector other(vec); vec = other; other.assign(vector::size_type(5), 3); other.push_back(6); other.push_back(8); std::for_each(other.begin(), other.end(), print); std::cout << std::endl; const vector constvec(other); std::for_each(constvec.rbegin(), constvec.rend(), print); std::for_each(constvec.begin(), constvec.end(), print); std::cout << std::endl; other.pop_back(); std::for_each(other.rbegin(), other.rend(), print); std::cout << std::endl; std::cout << "comparaisons" << std::endl; std::cout << (vec == other) << std::endl; std::cout << (vec == other) << std::endl; return 0; }