You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository contains my solutions to the 42 C++ modules (00 to 09). Each file demonstrates a specific concept or set of concepts from C++ (C++98 to C++ canonical form), following the school's progression.
Static casting, type identification, static functions
ex01
Reinterpret casting, uintptr_t
ex02
Dynamic casting by pointer and reference, try and catch
Module 07 — Templates
File
Concept
ex00
Function templates
ex01
Function template overload, function pointer
ex02
Class templates
Module 08 — Containers & STL
File
Concept
ex00
Template functions with containers
ex01
Efficient container algorithms and logic
ex02
Iterators and container adpaters
Module 09 — Advanced Containers & STL
File
Concept
ex00
std::map
ex01
std::stack
ex02
Ford-Johnson algorithm, std::deque
Tests
Where applicable, I’ve included test files or sample usage to demonstrate and validate each concept.
Build & Run
All files can be compiled with a simple Makefile or using:
make
Or to include memory leak verification use (only in exercises where applicable):
make val
About
The C++ Modules (00–09) at 42 are designed to progressively build strong foundations in modern C++ (usually C++98 standard in the project rules). The focus is object-oriented design, memory management, and STL.