{"id":15047491,"url":"https://github.com/program--/pipe","last_synced_at":"2025-12-30T10:45:23.256Z","repository":{"id":243863812,"uuid":"693900372","full_name":"program--/pipe","owner":"program--","description":"A forward-pipe for C++14","archived":false,"fork":false,"pushed_at":"2023-09-20T00:08:28.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T15:59:26.130Z","etag":null,"topics":["cpp","cpp14","header-only","pipeline"],"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/program--.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":"2023-09-20T00:08:20.000Z","updated_at":"2023-09-20T02:01:30.000Z","dependencies_parsed_at":"2024-06-12T21:02:25.402Z","dependency_job_id":null,"html_url":"https://github.com/program--/pipe","commit_stats":null,"previous_names":["program--/pipe"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/program--%2Fpipe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/program--%2Fpipe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/program--%2Fpipe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/program--%2Fpipe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/program--","download_url":"https://codeload.github.com/program--/pipe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243475328,"owners_count":20296714,"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","cpp14","header-only","pipeline"],"created_at":"2024-09-24T20:59:06.618Z","updated_at":"2025-12-30T10:45:23.222Z","avatar_url":"https://github.com/program--.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pipe: an over-engineered forward-pipe C++14 library\n\n## Usage\n\n`pipe::with` describes your initial input value. This can then be piped into objects that provide an `operator()` member, such as lambdas, using the `|` operator. Finally, adding `| pipe::done` signals that the operation is complete, and should be evaluated.\n\nIf the piped functors are `constexpr`-able, then the entire pipeline is `constexpr`-able.\n\n### Example\n\n```cpp\n// example.cpp\n#include \"pipe.hpp\"\n\n#include \u003ciostream\u003e\n#include \u003cstring\u003e\n\nint print_string(const std::string\u0026 msg)\n{\n    std::cout \u003c\u003c msg \u003c\u003c std::endl;\n    return 1;\n}\n\nint main() {\n    pipe::with(3)\n    | [](double v) -\u003e double { return v + 10; }\n    | [](double v) -\u003e char { return static_cast\u003cchar\u003e(v); }\n    | [](char c)   -\u003e std::string { return std::to_string(c); }\n    | [](const std::string\u0026 msg) { return print_string(msg); }\n    | pipe::done;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogram--%2Fpipe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprogram--%2Fpipe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogram--%2Fpipe/lists"}