{"id":15047716,"url":"https://github.com/curve/rebind","last_synced_at":"2025-04-12T15:32:07.885Z","repository":{"id":247286749,"uuid":"825422413","full_name":"Curve/rebind","owner":"Curve","description":"🎲 Simple, compiler agnostic, C++23 reflection library (for aggregates and enums)","archived":false,"fork":false,"pushed_at":"2025-03-11T09:00:01.000Z","size":119,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T03:44:14.584Z","etag":null,"topics":["cpp-reflection","cpp23","cpp23-library","reflection"],"latest_commit_sha":null,"homepage":"","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/Curve.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-07T18:15:14.000Z","updated_at":"2025-03-11T08:59:58.000Z","dependencies_parsed_at":"2025-02-21T00:40:44.190Z","dependency_job_id":"b29c61e7-302e-4de4-99ab-5c56165f986c","html_url":"https://github.com/Curve/rebind","commit_stats":null,"previous_names":["curve/rebind"],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Curve%2Frebind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Curve%2Frebind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Curve%2Frebind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Curve%2Frebind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Curve","download_url":"https://codeload.github.com/Curve/rebind/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248589768,"owners_count":21129679,"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-reflection","cpp23","cpp23-library","reflection"],"created_at":"2024-09-24T21:03:26.672Z","updated_at":"2025-04-12T15:32:07.857Z","avatar_url":"https://github.com/Curve.png","language":"C++","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/logo.svg\" width=\"600\"\u003e\n\u003c/p\u003e\n\n## 📃 Description\n\n_Rebind_ is a simple, tiny C++23 reflection library for aggregates and enums.  \nThis library is fully compiler agnostic as it figures out how to demangle given types at compile time.\n\n## 📦 Installation\n\n* Using [CPM](https://github.com/cpm-cmake/CPM.cmake)\n  ```cmake\n  CPMFindPackage(\n    NAME           rebind\n    VERSION        5.1.0\n    GIT_REPOSITORY \"https://github.com/Curve/rebind\"\n  )\n  ```\n\n* Using FetchContent\n  ```cmake\n  include(FetchContent)\n\n  FetchContent_Declare(rebind GIT_REPOSITORY \"https://github.com/Curve/rebind\" GIT_TAG v5.0.0)\n  FetchContent_MakeAvailable(rebind)\n\n  target_link_libraries(\u003ctarget\u003e cr::rebind)\n  ```\n\n## 📖 Examples\n\nhttps://github.com/Curve/rebind/blob/d8b79fa7a8fe0fd155f0f7c2f896052649210b26/tests/name.test.cpp#L9-L11\nhttps://github.com/Curve/rebind/blob/d8b79fa7a8fe0fd155f0f7c2f896052649210b26/tests/enum.test.cpp#L22-L33\nhttps://github.com/Curve/rebind/blob/d8b79fa7a8fe0fd155f0f7c2f896052649210b26/tests/member.test.cpp#L37-L45\n\n\u003e 🧪 For more examples see [tests](tests/)\n\n## 📋 Documentation\n\n```cpp\ntemplate \u003ctypename T\u003e\nstatic constexpr auto type_name = /*...*/;\n```\n\n\u003e **Returns**: Human readable name of type `T`\n\n```cpp\ntemplate \u003cauto T\u003e\nstatic constexpr auto nttp_name = /*...*/;\n```\n\n\u003e **Returns**: Human readable name of the given nttp `T`\n\n---\n\n```cpp\ntemplate \u003ctypename T\u003e\nstatic constexpr auto arity = /*...*/;\n```\n\n\u003e **Returns**: Count of members of `T`\n\n```cpp\ntemplate \u003ctypename T\u003e\nconstexpr auto to_tuple(T \u0026value);\n```\n\n\u003e **Returns**: A tuple of references to all members of the given `value`\n\n---\n\n```cpp\ntemplate \u003ctypename T\u003e\nstatic constexpr auto members = /*...*/;\n```\n\n\u003e **Returns**: A `rebind::member` object for each member present in the aggregate  \n\u003e **Contains**: The `type`, `name` and `index`\n\n```cpp\ntemplate \u003cauto T\u003e\nstatic constexpr auto member_name = /*...*/;\n```\n\n\u003e **Returns**: The member name of the given member pointer\n\n---\n\n```cpp\ntemplate \u003cauto T\u003e\nstatic constexpr auto enum_name = /*...*/;\n```\n\n\u003e **Returns**: The name of the given enum value  \n\u003e **Note**: To get the name of an enum-type use `rebind::type_name` instead\n\n```cpp\ntemplate \u003ctypename T\u003e\nstatic constexpr auto enum_values = /*...*/;\n```\n\n\u003e **Returns**: All values of the given enum `T` (specialize `rebind::search_min` / `rebind::search_max` to tweak the search range)  \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurve%2Frebind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcurve%2Frebind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurve%2Frebind/lists"}