{"id":26902530,"url":"https://github.com/0xromjobert/cpp08","last_synced_at":"2025-08-14T07:41:58.970Z","repository":{"id":225129524,"uuid":"762262083","full_name":"0xromjobert/cpp08","owner":"0xromjobert","description":"42 school C++ module on templates, STL containers and algorithms","archived":false,"fork":false,"pushed_at":"2024-03-08T17:42:19.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-15T14:37:28.837Z","etag":null,"topics":["cpp-template","cpp98","generic-programming","stl","stl-algorithms","stl-containers","templates"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xromjobert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-23T12:15:19.000Z","updated_at":"2024-03-13T09:24:53.000Z","dependencies_parsed_at":"2024-02-29T13:10:50.655Z","dependency_job_id":"3bb433e0-a3c3-4250-b0d0-5c36fe4f8955","html_url":"https://github.com/0xromjobert/cpp08","commit_stats":null,"previous_names":["romz8/cpp08","0xromjobert/cpp08"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/0xromjobert/cpp08","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xromjobert%2Fcpp08","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xromjobert%2Fcpp08/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xromjobert%2Fcpp08/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xromjobert%2Fcpp08/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xromjobert","download_url":"https://codeload.github.com/0xromjobert/cpp08/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xromjobert%2Fcpp08/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270385012,"owners_count":24574535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp-template","cpp98","generic-programming","stl","stl-algorithms","stl-containers","templates"],"created_at":"2025-04-01T09:43:51.970Z","updated_at":"2025-08-14T07:41:58.939Z","avatar_url":"https://github.com/0xromjobert.png","language":"C++","readme":"# **C++ Module 08**\n\nMy solutions for the C++ module exercises at 42 School. Each exercise is to understand C++ concepts, mostly templating and STL (Standard Template Library), inheritance, polymorphism, and container adaptors.\n\n### **Prerequisites**\n\n- A C++ compiler supporting the C++98 standard\n\n### **Compilation**\n\nEach exercise directory contains a Makefile for easy compilation. To compile an exercise, navigate to its directory and run:\n\n```bash\n\ncd ex00 \u0026\u0026 make \u0026\u0026 ./ex00\n```\n\nThis will produce an executable named after the exercise (e.g., **`ex00`**, **`ex01`**, etc.), which you can then run:\n\n## Status\nValidated 27/02/2024. Grade: 100%.\n\n## **Exercise 00: Easy Find**\n\n- **Directory**: **`ex00/`**\n- **Objective**: Implement a template function **`easyfind`** that searches for a given integer in any STL container and throws an exception if the integer is not found.\n- **Key Concepts**: Templating, STL algorithms, Exception handling.\n\n## **Exercise 01: Span**\n\n- **Directory**: **`ex01/`**\n- **Objective**: Develop a **`Span`** class capable of storing a maximum number of integers and providing the shortest and longest span between stored integers.\n- **Key Concepts**: Class design, STL containers and algorithms, Dynamic memory management.\n\n## **Exercise 02: Mutated Abomination**\n\n- **Directory**: **`ex02/`**\n- **Objective**: Extend the **`std::stack`** container to make it iterable, without altering its original functionality. By inheriting from **`std::stack`**, we introduce iterability to the **`MutantStack`** class without changing its original stack functionality. This involves exposing iterators that allow traversal of the stack elements from bottom to top, effectively turning the stack into a linearly iterable container while retaining its LIFO (Last In, First Out) nature\n- **Key Concepts**: Inheritance, Container adaptors, Iterator protocol.\n\n## **Running the Tests**\n\nEach exercise includes a main function with comprehensive tests to demonstrate the functionality and to ensure correctness. After compiling an exercise, run the executable to see the test outcomes.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xromjobert%2Fcpp08","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xromjobert%2Fcpp08","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xromjobert%2Fcpp08/lists"}