Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

C++ From Scratch

Reimplementing core C++ standard library components and mechanisms from scratch, in order to deeply understand what happens under the hood — memory management, move semantics, concurrency, templates.

Each project is self-contained, includes its own tests and README, and has been verified leak-free with valgrind.

Projects

Project Reimplements Key concepts
myvector/ std::vector<T> Rule of five, move semantics, iterators, exception safety
myuniqueptr/ std::unique_ptr<T> RAII, deleted copy, move-only ownership, explicit

More projects to come.

Build & test

Each project can be compiled independently, e.g.:

cd myvector
g++ -std=c++17 -g myvector.cpp -o test
./test

To check for memory leaks:

valgrind --leak-check=full ./test

License

MIT (or whatever you'd like — feel free to browse and reuse).

About

Reimplementing core C++ mechanisms from scratch (memory management, move semantics, templates) to deeply understand what's under the hood.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages