Skip to content

Instantly share code, notes, and snippets.

View advnpzn's full-sized avatar
😪
sleepy

mito advnpzn

😪
sleepy
View GitHub Profile
@advnpzn
advnpzn / vector.cc
Last active June 13, 2025 18:31
A basic non-thread safe implementation of vector (dynamic array) data structure in C++
#include <algorithm>
#include <cstddef>
#include <initializer_list>
#include <iostream>
#include <memory>
#include <stdexcept>
template <typename T> class Vector {
private:
T *data_ = nullptr;