{"id":17982285,"url":"https://github.com/pierrechevalier83/signed_size","last_synced_at":"2025-04-04T01:47:04.138Z","repository":{"id":82227592,"uuid":"75583955","full_name":"pierrechevalier83/signed_size","owner":"pierrechevalier83","description":"A header only utility function for getting the size of a container as a signed type","archived":false,"fork":false,"pushed_at":"2017-01-21T09:54:36.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T13:29:15.695Z","etag":null,"topics":["cpp","cpp11","cpp14","header-only","modern-cpp","signed","utility"],"latest_commit_sha":null,"homepage":null,"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/pierrechevalier83.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}},"created_at":"2016-12-05T03:10:35.000Z","updated_at":"2017-03-02T21:23:25.000Z","dependencies_parsed_at":"2023-04-25T20:11:56.743Z","dependency_job_id":null,"html_url":"https://github.com/pierrechevalier83/signed_size","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/pierrechevalier83%2Fsigned_size","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pierrechevalier83%2Fsigned_size/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pierrechevalier83%2Fsigned_size/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pierrechevalier83%2Fsigned_size/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pierrechevalier83","download_url":"https://codeload.github.com/pierrechevalier83/signed_size/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247107834,"owners_count":20884797,"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":["cpp","cpp11","cpp14","header-only","modern-cpp","signed","utility"],"created_at":"2024-10-29T18:13:38.981Z","updated_at":"2025-04-04T01:47:04.113Z","avatar_url":"https://github.com/pierrechevalier83.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# signed_size\n\nA header only utility function for getting the size of a container as a signed type.\n\n# Motivation\n\nIn a nutshell:\nIt allows to use old-style for loops without triggering sign comparison warnings:\n\n```\n    for (int i = 0; i \u003c signed_size(container); ++i) { ... }\n    for (int64_t i = 0; i \u003c signed_size(big_container); ++i) { ... }\n```\n\nCheck out [this article](https://pierrec.tech/articles/code/signed_vs_unsigned_int.html) for a detailed explanation about the motivation.\n\n# Build\n\n- `mkdir build`\n- `cd build`\n- `cmake ..`\n- `make`\n- `make test`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpierrechevalier83%2Fsigned_size","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpierrechevalier83%2Fsigned_size","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpierrechevalier83%2Fsigned_size/lists"}