{"id":18463895,"url":"https://github.com/vimpunk/rc","last_synced_at":"2025-10-08T04:47:01.576Z","repository":{"id":117062009,"uuid":"159638371","full_name":"vimpunk/rc","owner":"vimpunk","description":"Simple non-atomic reference counted word sized pointer types for C++11","archived":false,"fork":false,"pushed_at":"2018-11-29T09:30:55.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-28T16:55:54.926Z","etag":null,"topics":[],"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/vimpunk.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}},"created_at":"2018-11-29T09:11:11.000Z","updated_at":"2022-04-11T05:10:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"9c86f963-fd49-4567-bf35-1d1c8d68dfed","html_url":"https://github.com/vimpunk/rc","commit_stats":null,"previous_names":["vimpunk/rc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vimpunk/rc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimpunk%2Frc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimpunk%2Frc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimpunk%2Frc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimpunk%2Frc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vimpunk","download_url":"https://codeload.github.com/vimpunk/rc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimpunk%2Frc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278891749,"owners_count":26063855,"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-10-08T02:00:06.501Z","response_time":56,"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-06T09:08:19.464Z","updated_at":"2025-10-08T04:47:01.543Z","avatar_url":"https://github.com/vimpunk.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RC\n\nThis library provides a simple replacement for when `std::shared_ptr`s are not\nsuitable. Rc stands for \"reference counted\" (very creative, I know), inspired by Rust's\n`Arc`. The API is similar to that of `std::shared_ptr` and `std::weak_ptr`.\n\n## Why\n\nRc has two main selling points.\n\nOne, both pointer types are *non* atomic (saving some of the associated overhead)--and thus *not* thread safe!\n\nSecond, both pointer types (`rc` and`weak_rc`) are the size of\nthe architecture's word size (i.e. equal to `sizeof(void*)`. Besides saving space, this allows rc pointers to be passed\nto C style functions that take a `void*` as their generic parameter. To faciliatate\nthis, special conversion methods are provided to cast to `void*` and to\nreconstruct rc pointers from `void*`.\n\n## Disclaimer\n\n*USE AT YOUR OWN RISK!* This library has not been thoroughly tested, it's a recent experiment that needs further evaluation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvimpunk%2Frc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvimpunk%2Frc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvimpunk%2Frc/lists"}