{"id":23236750,"url":"https://github.com/pratikpc/cpp-template-detect-if-object-contains-a-function-definition","last_synced_at":"2025-07-10T18:39:22.542Z","repository":{"id":195886050,"uuid":"693753975","full_name":"pratikpc/CPP-Template-Detect-If-Object-Contains-A-Function-Definition","owner":"pratikpc","description":"A simple library which will help write code which can at compile time detect if a function with a specific typing is present or not","archived":false,"fork":false,"pushed_at":"2023-09-19T21:55:25.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-04-05T21:17:02.279Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/pratikpc.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}},"created_at":"2023-09-19T16:36:45.000Z","updated_at":"2023-09-19T21:56:26.000Z","dependencies_parsed_at":"2023-09-20T01:02:21.330Z","dependency_job_id":"8ab7a912-38c5-4f91-8089-1c964056ce5a","html_url":"https://github.com/pratikpc/CPP-Template-Detect-If-Object-Contains-A-Function-Definition","commit_stats":null,"previous_names":["pratikpc/cpp-template-detect-if-object-contains-a-function-definition"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pratikpc/CPP-Template-Detect-If-Object-Contains-A-Function-Definition","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pratikpc%2FCPP-Template-Detect-If-Object-Contains-A-Function-Definition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pratikpc%2FCPP-Template-Detect-If-Object-Contains-A-Function-Definition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pratikpc%2FCPP-Template-Detect-If-Object-Contains-A-Function-Definition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pratikpc%2FCPP-Template-Detect-If-Object-Contains-A-Function-Definition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pratikpc","download_url":"https://codeload.github.com/pratikpc/CPP-Template-Detect-If-Object-Contains-A-Function-Definition/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pratikpc%2FCPP-Template-Detect-If-Object-Contains-A-Function-Definition/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264631351,"owners_count":23640947,"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":[],"created_at":"2024-12-19T04:12:38.118Z","updated_at":"2025-07-10T18:39:22.499Z","avatar_url":"https://github.com/pratikpc.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Code Required\n\n```cpp\n    auto const contains_test = requires(T t)\n    {\n        { t.Test(1, 2) } -\u003e std::same_as\u003cvoid\u003e;\n    };\n```\n\n# In C++17\n\n```cpp\n    static constexpr auto const contains_test = static_cast\u003cbool\u003e(boost::hana::is_valid(\n        [](auto \u0026\u0026obj) -\u003e decltype(obj.Test(1, 2)) {\n\n        })(t));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpratikpc%2Fcpp-template-detect-if-object-contains-a-function-definition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpratikpc%2Fcpp-template-detect-if-object-contains-a-function-definition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpratikpc%2Fcpp-template-detect-if-object-contains-a-function-definition/lists"}