{"id":25897062,"url":"https://github.com/astrodynamic/flags","last_synced_at":"2025-03-02T23:17:45.340Z","repository":{"id":280184548,"uuid":"939652829","full_name":"Astrodynamic/Flags","owner":"Astrodynamic","description":"Simple C++ header-only bit flag library. Uses enum  for type-safe, efficient flag manipulation.","archived":false,"fork":false,"pushed_at":"2025-03-01T20:11:05.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-03-01T20:35:25.863Z","etag":null,"topics":["bit-manipulation","bitflags","bits","bitset","cmake","cpp","cpp17","enums","header-only","library","performance","software-development","utilities","utility-library"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":false,"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/Astrodynamic.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":"2025-02-26T22:10:44.000Z","updated_at":"2025-03-01T20:11:08.000Z","dependencies_parsed_at":"2025-03-01T20:35:27.213Z","dependency_job_id":"83074a97-ea2c-43ba-9321-8d4e3e5c68ff","html_url":"https://github.com/Astrodynamic/Flags","commit_stats":null,"previous_names":["astrodynamic/flags"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Astrodynamic%2FFlags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Astrodynamic%2FFlags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Astrodynamic%2FFlags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Astrodynamic%2FFlags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Astrodynamic","download_url":"https://codeload.github.com/Astrodynamic/Flags/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241582556,"owners_count":19985846,"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":["bit-manipulation","bitflags","bits","bitset","cmake","cpp","cpp17","enums","header-only","library","performance","software-development","utilities","utility-library"],"created_at":"2025-03-02T23:17:44.776Z","updated_at":"2025-03-02T23:17:45.321Z","avatar_url":"https://github.com/Astrodynamic.png","language":"C++","readme":"The `Flags` library provides a convenient way to work with bit flags using enums as indexes. It is based on `std::bitset` and provides an interface adapted for working with enums.\n\n## Requirements\n\n*   C++17\n*   CMake 3.28.3 or higher\n\n## Usage\n\nTo use the library, the `flags.h` header file must be included.\n```cpp\n#include \"flags.h\"\n```\n\n## Example\n\n```cpp\nenum class MyFlags {\n  Flag1,\n  Flag2,\n  Flag3,\n  COUNT\n};\n\nutils::Flags\u003cMyFlags\u003e flags;\n\nflags.set(MyFlags::Flag1);\nflags.flip(MyFlags::Flag2);\n\nif (flags[MyFlags::Flag1]) {\n  // ...\n}\n```\n\n## Build\n\nCMake is used to build the library.\n\n```bash\ncmake -S . -B build\ncmake --build build\n```\n\n## LICENSE\n\nThis project is licensed under the [MIT License](LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastrodynamic%2Fflags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastrodynamic%2Fflags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastrodynamic%2Fflags/lists"}