{"id":19329901,"url":"https://github.com/zhongruoyu/lazyostream","last_synced_at":"2025-07-12T13:39:49.110Z","repository":{"id":153369489,"uuid":"499536406","full_name":"ZhongRuoyu/LazyOstream","owner":"ZhongRuoyu","description":"A simple library that wraps C++'s `std::basic_ostream` for lazy evaluation.","archived":false,"fork":false,"pushed_at":"2022-06-15T14:09:14.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-06T08:18:08.941Z","etag":null,"topics":["cpp","lazy-evaluation","logging"],"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/ZhongRuoyu.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":"2022-06-03T14:12:15.000Z","updated_at":"2022-06-03T16:17:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"a61c29cb-4e44-4bbd-a0f6-b63805678d05","html_url":"https://github.com/ZhongRuoyu/LazyOstream","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/ZhongRuoyu%2FLazyOstream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZhongRuoyu%2FLazyOstream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZhongRuoyu%2FLazyOstream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZhongRuoyu%2FLazyOstream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZhongRuoyu","download_url":"https://codeload.github.com/ZhongRuoyu/LazyOstream/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240434233,"owners_count":19800548,"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","lazy-evaluation","logging"],"created_at":"2024-11-10T02:31:58.054Z","updated_at":"2025-02-24T06:44:03.668Z","avatar_url":"https://github.com/ZhongRuoyu.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LazyOstream\n\nThis is a simple library that wraps C++'s `std::basic_ostream` for lazy\nevaluation. Streams can be disabled, and when they are, output is not\nevaluated. This can be achieved without having to rebuild the binary or define\nany additional debugging flags, making it very suitable for logging and\ndebugging purposes.\n\n## Interfaces\n\nIt provides a general interface, `LAZY_OSTREAM(ostream, enabled)`. When\n`enabled` is set to `true`, it behaves normally like the `ostream` itself;\nwhen `enabled` is set to `false`, however, anything passed to it is not\nevaluated. In addition, similar to `iostream`, it also defines the following\nthree shortcuts for the standard output streams: `LAZY_COUT(enabled)`,\n`LAZY_CERR(enabled)`, `LAZY_CLOG(enabled)`.\n\n## Examples\n\nSee [here](examples) for a set of examples.\n\n## License\n\nCopyright (c) 2022 Zhong Ruoyu. Licensed under [the MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhongruoyu%2Flazyostream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhongruoyu%2Flazyostream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhongruoyu%2Flazyostream/lists"}