{"id":15047795,"url":"https://github.com/andreasfertig/programming-with-cpp20","last_synced_at":"2025-04-07T06:08:11.688Z","repository":{"id":50346581,"uuid":"351523969","full_name":"andreasfertig/programming-with-cpp20","owner":"andreasfertig","description":"Companion source code for \"Programming with C++20 - Concepts, Coroutines, Ranges, and more\"","archived":false,"fork":false,"pushed_at":"2024-09-03T16:15:54.000Z","size":320,"stargazers_count":227,"open_issues_count":5,"forks_count":67,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-03-31T04:06:23.404Z","etag":null,"topics":["concepts","coroutines","cpp","cpp20","ranges"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andreasfertig.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2021-03-25T17:40:05.000Z","updated_at":"2025-03-17T14:30:13.000Z","dependencies_parsed_at":"2024-09-29T00:00:53.450Z","dependency_job_id":"dc78a3c6-3c78-47b1-bbed-cbe0b0c9f3a6","html_url":"https://github.com/andreasfertig/programming-with-cpp20","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasfertig%2Fprogramming-with-cpp20","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasfertig%2Fprogramming-with-cpp20/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasfertig%2Fprogramming-with-cpp20/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasfertig%2Fprogramming-with-cpp20/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreasfertig","download_url":"https://codeload.github.com/andreasfertig/programming-with-cpp20/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247601448,"owners_count":20964864,"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","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":["concepts","coroutines","cpp","cpp20","ranges"],"created_at":"2024-09-24T21:04:49.127Z","updated_at":"2025-04-07T06:08:11.654Z","avatar_url":"https://github.com/andreasfertig.png","language":"C++","readme":"# Companion Source Code for \"Programming with C++20 - Concepts, Coroutines, Ranges, and more\" 2. Edition\n\n[![Build Status](https://github.com/andreasfertig/programming-with-cpp20/workflows/ci/badge.svg)](https://github.com/andreasfertig/programming-with-cpp20/actions/) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](/LICENSE.txt)\n\n![Book cover](.artwork/cover.png)\n\n## Code examples\n\nThis repository contains runnable source code examples from the 2. edition of [Programming with C++20 - Concepts, Coroutines, Ranges, and more](https://andreasfertig.com/books/programming-with-cpp20/), by [Andreas Fertig](https://andreasfertig.com).\n\n### The layout of the examples\n\nThe examples are separated into different directories based on how they appear in the book.\n\n### Running the examples\n\nThe examples are in a single `.cpp` file that can be easily executed in any IDE. There is also an `CMakeLists.txt` which can generate IDE projects or be used to compile the example in a terminal.\nThis repo contains a top-level `CMakeLists.txt`, which does build all the examples.\n\n### Building the examples\n\nYou can select the compiler by setting the `CXX` environment variable.\n\n```\nmkdir programming-with-cpp20\ncd programming-with-cpp20\ngit clone https://github.com/andreasfertig/programming-with-cpp20\nmkdir build\ncd build\ncmake ../\ncmake --build . -j\n```\n\nAfter that, you find all the executables in `programming-with-cpp20/build/bin`.\n\nSome examples use the latest C++ standard, so you will need a modern compiler to compile them. The latest stable versions of GCC or [Clang](https://releases.llvm.org/) are recommended. The code is not tested but is also expected to work with MSVC.\n\n## License\n\nThe source code is released under the [MIT License](/LICENSE.txt).\n","funding_links":[],"categories":["Summary"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreasfertig%2Fprogramming-with-cpp20","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreasfertig%2Fprogramming-with-cpp20","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreasfertig%2Fprogramming-with-cpp20/lists"}