{"id":18979665,"url":"https://github.com/reputeless/indexediterator","last_synced_at":"2025-09-03T22:33:20.201Z","repository":{"id":67723150,"uuid":"108683661","full_name":"Reputeless/IndexedIterator","owner":"Reputeless","description":"Header-only indexed iterator library for modern C++","archived":false,"fork":false,"pushed_at":"2017-10-31T08:23:04.000Z","size":16,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T11:22:25.795Z","etag":null,"topics":["cpp","cpp17"],"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/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":"2017-10-28T20:58:36.000Z","updated_at":"2022-02-18T02:32:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"0aa48594-24ca-48ab-8f41-7f68376c6734","html_url":"https://github.com/Reputeless/IndexedIterator","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%2FIndexedIterator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reputeless%2FIndexedIterator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reputeless%2FIndexedIterator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reputeless%2FIndexedIterator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Reputeless","download_url":"https://codeload.github.com/Reputeless/IndexedIterator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249235129,"owners_count":21235157,"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","cpp17"],"created_at":"2024-11-08T15:44:20.224Z","updated_at":"2025-04-16T11:32:29.128Z","avatar_url":"https://github.com/Reputeless.png","language":"C++","readme":"# siv::IndexedIterator\n**siv::IndexedIterator** is a header-only indexed iterator library for modern C++.\n\n## Examples\n\n### std::vector\n\n```cpp\nstd::vector\u003cint\u003e v = { 0, 100, 200, 300, 400, 500 };\n\nfor (auto [i, n] : Indexed(v))\n{\n\tstd::cout \u003c\u003c i \u003c\u003c \": \" \u003c\u003c n \u003c\u003c \"\\n\"; \n}  \n```\n```\n0: 0\n1: 100\n2: 200\n3: 300\n4: 400\n5: 500\n```\n\n### std::string\n\n```cpp\nstd::string s = \"Hello, world!\";\n\nfor (auto [i, ch] : Indexed(v))\n{\n\tstd::cout \u003c\u003c i \u003c\u003c \": \" \u003c\u003c ch \u003c\u003c \"\\n\"; \n}\n```\n```\n0: H\n1: e\n2: l\n3: l\n4: o\n5: ,\n6:  \n7: w\n8: o\n9: r\n10: l\n11: d\n12: !\n```\n\n### std::map\n\n```cpp\nstd::map\u003cstd::string, std::string\u003e m = { { \"aaa\", \"AAA\" }, { \"bbb\", \"BBB\" }, { \"ccc\", \"CCC\" } };\n\nfor (auto [i, p] : Indexed(m))\n{\n\tstd::cout \u003c\u003c i \u003c\u003c \": \" \u003c\u003c p.first \u003c\u003c \", \" \u003c\u003c p.second \u003c\u003c \"\\n\"; \n} \n```\n```\n0: aaa, AAA\n1: bbb, BBB\n2: ccc, CCC\n```\n\n## License\nsiv::IndexedIterator is distributed under the MIT license.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freputeless%2Findexediterator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freputeless%2Findexediterator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freputeless%2Findexediterator/lists"}