Skip to content

natamun/42-cpp08

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42-cpp08

The ninth C++ module of the 42 curriculum, focused on templated containers, iterators, and algorithms.

This project explores the C++ Standard Template Library (STL) through practical use of containers, iterators, and algorithm design with templates.

Usage

Each exercise (ex00 to ex02) contains its own Makefile. Compile and run individually:

cd ex00
make
./ex00

Exercises

  • ex00: easyfind — a function template that searches for a value in any STL container, returning an iterator or throwing if not found.
  • ex01: Span — a class that stores up to N integers and computes the shortest and longest span between stored values.
  • ex02: MutantStack — a std::stack extension that exposes iterators, making it iterable like any standard container.

Code Structure

Each exercise is self-contained in its own directory with its own source files, headers, and Makefile, following the standard 42 module layout.

About

STL containers, iterators, and algorithms in C++

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors