{"id":18979628,"url":"https://github.com/reputeless/yesno","last_synced_at":"2025-09-12T17:41:25.020Z","repository":{"id":67723779,"uuid":"440793375","full_name":"Reputeless/YesNo","owner":"Reputeless","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-22T14:43:57.000Z","size":5,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T11:22:20.910Z","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":"bsl-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":"2021-12-22T08:52:09.000Z","updated_at":"2022-11-05T10:34:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"9784fa9b-e511-499a-b727-047725ed079c","html_url":"https://github.com/Reputeless/YesNo","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/Reputeless%2FYesNo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reputeless%2FYesNo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reputeless%2FYesNo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reputeless%2FYesNo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Reputeless","download_url":"https://codeload.github.com/Reputeless/YesNo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249235129,"owners_count":21235156,"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-11-08T15:44:15.035Z","updated_at":"2025-04-16T11:32:28.666Z","avatar_url":"https://github.com/Reputeless.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# siv::YesNo\n\n## Usage\n```cpp\n# include \u003ciostream\u003e\n# include \"YesNo.hpp\"\n\nusing siv::YesNo;\nusing FormatDisk = YesNo\u003cstruct FormatDisk_tag\u003e;\nusing WriteLog = YesNo\u003cstruct WriteLog_tag\u003e;\n\nvoid DoTask(FormatDisk formaDisk, WriteLog writeLog)\n{\n\tif (formaDisk)\n\t\tstd::cout \u003c\u003c \"Formatting a disk...\\n\";\n\tif (writeLog)\n\t\tstd::cout \u003c\u003c \"Writing a log...\\n\";\n}\n\nint main()\n{\n\tDoTask(FormatDisk::No, WriteLog::Yes);\n\tDoTask(FormatDisk{ false }, WriteLog{ true });\n\n\tDoTask(WriteLog::Yes, FormatDisk::No); // error\n\tDoTask(false, true); // error\n}\n```\n\n## License\nsiv::YesNo is distributed under the **Boost Software License 1.0**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freputeless%2Fyesno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freputeless%2Fyesno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freputeless%2Fyesno/lists"}