{"id":19895322,"url":"https://github.com/razshare/cpp-result","last_synced_at":"2026-06-12T15:31:02.324Z","repository":{"id":249812661,"uuid":"832624018","full_name":"razshare/cpp-result","owner":"razshare","description":"Safe error management in C++ using Result\u003cT\u003e, which is an Either\u003cL,R\u003e in disguise.","archived":false,"fork":false,"pushed_at":"2024-07-23T12:12:57.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-18T12:00:11.070Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/razshare.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2024-07-23T11:50:47.000Z","updated_at":"2024-07-23T12:13:00.000Z","dependencies_parsed_at":"2024-07-23T14:15:37.588Z","dependency_job_id":"f92eecea-4b91-4b07-8742-f24f50780a73","html_url":"https://github.com/razshare/cpp-result","commit_stats":null,"previous_names":["razshare/cpp-result"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/razshare/cpp-result","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razshare%2Fcpp-result","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razshare%2Fcpp-result/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razshare%2Fcpp-result/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razshare%2Fcpp-result/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/razshare","download_url":"https://codeload.github.com/razshare/cpp-result/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razshare%2Fcpp-result/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34251774,"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-12T02:00:06.859Z","response_time":109,"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":[],"created_at":"2024-11-12T18:36:24.391Z","updated_at":"2026-06-12T15:31:02.305Z","avatar_url":"https://github.com/razshare.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What is this?\n\nThis is an implementation of `Result\u003cT\u003e` in C++.\n\n# Opinions \u0026 Usage\n\nDo not throw exceptions in your code.\n\nInstead, use the provided `success()` and `failure()` functions and return `Error` objects.\n\nBoth functions make use of generic templates, so they are type safe.\n\n```c++\nauto [name, error] = success(\"world\").unwrap();\n```\n\nHere, `name_result` is of type `Result\u003cstd::string\u003e`.\n\nEvery single time your have `Result\u003cT\u003e` on your hands, you **must** unwrap it and check the error.\n\nThis gives you type safety and ensures you always know, at the language server level and compile time, when something can go wrong.\n\n```c++\n//auto [name, error] = success(\"world\").unwrap();\nauto [name, error] = failure\u003cstd::string\u003e(\"Something is wrong.\").unwrap();\nif(error.code \u003e 0){\n    // Something is wrong.\n    return;\n}\n\nstd::cout \u003c\u003c \"hello \" \u003c\u003c name;\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frazshare%2Fcpp-result","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frazshare%2Fcpp-result","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frazshare%2Fcpp-result/lists"}