{"id":32643760,"url":"https://github.com/qluana7/cpp-archive","last_synced_at":"2026-06-28T20:31:17.216Z","repository":{"id":263286638,"uuid":"889870731","full_name":"qluana7/Cpp-Archive","owner":"qluana7","description":"A personal archive of C++ code snippets, algorithms, and utility programs.","archived":false,"fork":false,"pushed_at":"2025-10-21T14:13:33.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-31T03:57:52.065Z","etag":null,"topics":["archive","cpp","cpp17","cpp20"],"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/qluana7.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-17T13:08:06.000Z","updated_at":"2025-10-21T14:13:39.000Z","dependencies_parsed_at":"2024-11-17T15:47:04.853Z","dependency_job_id":"cb5505f1-3be9-43e2-955c-7df76616283c","html_url":"https://github.com/qluana7/Cpp-Archive","commit_stats":null,"previous_names":["qluana7/cpp-archive"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/qluana7/Cpp-Archive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qluana7%2FCpp-Archive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qluana7%2FCpp-Archive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qluana7%2FCpp-Archive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qluana7%2FCpp-Archive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qluana7","download_url":"https://codeload.github.com/qluana7/Cpp-Archive/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qluana7%2FCpp-Archive/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34903523,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-28T02:00:05.809Z","response_time":54,"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":["archive","cpp","cpp17","cpp20"],"created_at":"2025-10-31T03:57:03.648Z","updated_at":"2026-06-28T20:31:17.199Z","avatar_url":"https://github.com/qluana7.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv id=\"toc\"\u003e\n  \u003cul style=\"list-style: none;\" align=\"center\"\u003e\n    \u003csummary\u003e\n      \u003ch1\u003e Cpp Archive \u003c/h1\u003e\n    \u003c/summary\u003e\n  \u003c/ul\u003e\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\u003ci\u003eA personal archive of C++ code snippets, algorithms, and utility programs.\u003c/i\u003e\u003c/p\u003e\n\n## Overview\n\nThis repository serves as a collection of reusable C++ code, including:\n\n- Common algorithms and data structures\n- Utility classes and functions\n- Example programs and problem solutions\n- Templates for common C++ patterns\n\nThe purpose is to provide a handy reference for C++ development and to encourage code reuse across projects.\n\n## Features\n\n- 100% C++ code\n- Well-organized by topic and type\n- Self-contained snippets for easy copy-paste\n- Includes comments and usage examples where appropriate\n\n## Header Files\n\nDescriptions for files in the `header` directory ([browse all headers](https://github.com/qluana7/Cpp-Archive/tree/main/header)):\n\n- **typedef.h**  \n  Provides type aliases for fixed-width integers (`i8`, `u16`, etc.), floating-point types (`f32`, `f64`), and optionally 128-bit types if supported, to simplify type usage across code.\n\n- **containerlib**  \n  Utilities for working with STL containers. Includes type traits to detect vectors, conversion utilities, and functions to parse strings into vectors (including nested vectors).\n\n- **enum_helper**  \n  Macros and templates for working with enums, including range checks, flag checks, casting, and bitwise operator overloads to make enums easier to use as bitfields or flag sets.\n\n- **fdstream**  \n  Defines `ifdstream` and `ofdstream`: C++ input/output stream wrappers for file descriptors, allowing use of standard streams with POSIX file descriptors (useful for advanced I/O and IPC).\n\n- **function_traits**  \n  Introspection utilities for `std::function` types, enabling you to extract argument and return types, and the number of arguments, for generic programming.\n\n- **ipc**  \n  An experimental header for process management and inter-process communication. Defines `Pipe`, `ProcessStartInfo`, and a `Process` class for launching and managing external processes, with support for I/O redirection.\n\n- **range**  \n  Provides a compile-time range class template, allowing you to easily iterate over integer ranges using C++ range-based for loops, similar to Python's `range()`.\n\n- **streamlib**  \n  Utilities for stream manipulation, such as ignoring values of specific types or using custom initializers when reading from streams. Useful for flexible and generic input parsing.\n\n- **strlib**  \n  Utilities for string manipulation: joining, splitting, trimming, padding, case conversion, and character checks. Includes both modern and deprecated split/join methods for containers and algorithms.\n\n- **threadlib**  \n  Utilities for asynchronous programming and event handling. Provides an `event` class template with synchronous and asynchronous policies, handler registration/removal, and a timer class for periodic events (since C++20).\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqluana7%2Fcpp-archive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqluana7%2Fcpp-archive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqluana7%2Fcpp-archive/lists"}