{"id":18979670,"url":"https://github.com/reputeless/enumbitmask","last_synced_at":"2025-04-19T18:07:04.946Z","repository":{"id":67723071,"uuid":"259030604","full_name":"Reputeless/EnumBitmask","owner":"Reputeless","description":"A C++ library to enable bitmask operators for an enum class type","archived":false,"fork":false,"pushed_at":"2020-04-27T13:09:00.000Z","size":47,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-16T13:35:51.175Z","etag":null,"topics":["bitmask","cpp","cpp17","enum"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Reputeless.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":"2020-04-26T12:56:19.000Z","updated_at":"2025-02-23T19:08:05.000Z","dependencies_parsed_at":"2023-04-12T20:23:09.047Z","dependency_job_id":null,"html_url":"https://github.com/Reputeless/EnumBitmask","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reputeless%2FEnumBitmask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reputeless%2FEnumBitmask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reputeless%2FEnumBitmask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reputeless%2FEnumBitmask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Reputeless","download_url":"https://codeload.github.com/Reputeless/EnumBitmask/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249757797,"owners_count":21321392,"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":["bitmask","cpp","cpp17","enum"],"created_at":"2024-11-08T15:44:21.378Z","updated_at":"2025-04-19T18:07:04.919Z","avatar_url":"https://github.com/Reputeless.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EnumBitmask \u003ca href=\"https://github.com/Reputeless/EnumBitmask/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-CC0%201.0-4aaa4a\"\u003e\u003c/a\u003e\n**EnumBitmask** is a library to enable bitmask operators for an enum class type.  \n\n![](EnumBitmask.png)\n\n## Examples\n\n```C++\n# include \u003ciostream\u003e\n# include \"EnumBitmask.hpp\"\n\nenum class OpenMode\n{\n\tAppend\t= 1,\n\tBinary\t= 2,\n\tInput\t= 4,\n\tOutput\t= 8,\n};\nDEFINE_BITMASK_OPERATORS(OpenMode)\n\nint main()\n{\n\tconstexpr OpenMode openMode = OpenMode::Binary | OpenMode::Input;\n\t\n\tif (openMode \u0026 OpenMode::Binary)\n\t{\n\t\tstd::cout \u003c\u003c \"Binary mode\" \u003c\u003c '\\n';\n\t}\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freputeless%2Fenumbitmask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freputeless%2Fenumbitmask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freputeless%2Fenumbitmask/lists"}