{"id":14258707,"url":"https://github.com/softchris/cpp-snippets","last_synced_at":"2026-02-10T18:09:31.221Z","repository":{"id":72018224,"uuid":"425835534","full_name":"softchris/cpp-snippets","owner":"softchris","description":"Snippets for  C++","archived":false,"fork":false,"pushed_at":"2021-11-15T14:00:28.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-16T17:43:33.909Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/softchris.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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-11-08T12:50:17.000Z","updated_at":"2024-08-02T15:13:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"725ffef0-aa45-4a26-bb99-56074880e30a","html_url":"https://github.com/softchris/cpp-snippets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/softchris/cpp-snippets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softchris%2Fcpp-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softchris%2Fcpp-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softchris%2Fcpp-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softchris%2Fcpp-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softchris","download_url":"https://codeload.github.com/softchris/cpp-snippets/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softchris%2Fcpp-snippets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29310073,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T17:48:59.043Z","status":"ssl_error","status_checked_at":"2026-02-10T17:45:37.240Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-08-22T09:01:37.520Z","updated_at":"2026-02-10T18:09:31.184Z","avatar_url":"https://github.com/softchris.png","language":null,"funding_links":[],"categories":["Others"],"sub_categories":[],"readme":"\n# cpp-snippets\n\nThis is an extension meant to give you some awesome C++ snippets\n\n## Contact\n\nIf you find issues please report them on the GitHub repo.\n\nIf you have any comments like feature requests or feedback on theses snippets please contact me on Twitter at [chris_noring](https://twitter.com/chris_noring).\n\nRemember these snippets are for all of you, so if you feel that they could be even better, don't hesitate to let me know :)\n\n/Chris\n\n## Features\n\nA collection of C++ snippets\n\nThe following commands are available:\n\n- `cpp-class-declare`, declares a class.\n- `cpp-class-sample`, declares a class, implements it.\n- `cpp-for`, declare a for loop.\n- `cpp-foreach`, declare a for each loop.\n- `cpp-if`, declare an if-clause.\n- `cpp-if-else-if-else`, declare a clause with an if, else if and else clause.\n- `cpp-if-else`, declare a clause with an if and an else.\n- `cpp-function`, shows how to declare a function.\n- `cpp-function-int`, shows how to declare a function returning an int.\n- `cpp-function-string`, shows how to declare a function returning a string.\n- `cpp-iostream-input-line`, shows how to read full line user input.\n- `cpp-iostream-input-multiple`, show how to read multiple inputs, separated by space.\n- `cpp-iostream-input`, shows how to read one input.\n- `cpp-iostream-print`, shows how to print to the console.\n- `cpp-app-sample`, shows how to create a sample app in C++.\n- `cpp-use-namespace`, shows how to add a namespace.\n- `cpp-use-namespace-std`, shows how to add the 'std' namespace.\n- `cpp-lib-string`, shows how to add the string lib.\n- `cpp-lib-iostream`, shows how to add the iostream lib.\n- `cpp-main`, shows how to add main function.\n- `cpp-pointer-allocate`, declare a pointer that allocates memory and also deallocates.\n- `cpp-pointer-array`, declares a pointer that iterates through an array.\n- `cpp-pointer`, declare a pointer that's assigned an address, also dereferencing is shown.\n- `cpp-vector-lib`, includes the lib for vector.\n- `cpp-vector`, shows how to create a vector instance.\n- `cpp-vector-loop-for`, shows how to looop through a vector using a for-loop.\n- `cpp-vector-loop-iterator`, shows how to looop through a vector using an iterator.\n- `cpp-vector-loop-range`, shows how to loop through a vector using an range based for loop.\n- `cpp-struct-declare`, declares a struct.\n- `cpp-struct-sample`, shows how to declare and instantiate a struct.\n- `cpp-stack`, shows how to declare a stack.\n- `cpp-stack-lib`, shows how to import a stack.\n- `cpp-queue`, shows how to declare a queue.\n- `cpp-queue-lib`, shows how to import a queue.\n- `cpp-dowhile`, declare a do while loop.\n- `cpp-while`, declare a while loop.\n\n## Release Notes\n\nThis is the release notes.\n\n### 1.1.1\n\nAdded, if, while, for\n\n### 1.0.0\n\ncomplete, but plans to add things to it gradually. Please suggest in repo issues what you need.\n\n### 0.1.0\n\nFirst release\n\n## Publisher\n\nChris Noring\n@chris_noring\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftchris%2Fcpp-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftchris%2Fcpp-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftchris%2Fcpp-snippets/lists"}