Skip to content

ucu-cs/lab3-my-vector-ivaniuk_vector_array-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lab work 3: My vector, my array, smart pointers

Authors (team): Oleksandr Ivaniuk

Prerequisites

sudo apt-get install libgtest-dev

Compilation

mkdir build
cd build
cmake .. 
make -j4

Usage

Tests:

./tests/vector-tests
./tests/array-tests
./tests/unique-ptr-tests

Also for time measurement:

./vector-array

Results

img.png
As we can see my vector is a little bit faster than std::vector. It probably because of fewer count of checks.

Additional tasks

Comparison of my vector and std::vector. Smart pointer (only unique ptr)

About

modern_cpp_2024-2025-lab3_my_vector-template_cpp-1 created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CMake 63.6%
  • C++ 33.9%
  • Shell 2.5%