MCPcopy Create free account
hub / github.com/AlexInLog/ReactivePlusPlus / main

Function main

src/examples/rpp/basic/basic.cpp:6–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <iostream>
5
6int main() // NOLINT(bugprone-exception-escape)
7{
8 rpp::source::from_callable(&::getchar)
9 | rpp::operators::repeat()
10 | rpp::operators::take_while([](char v) { return v != '0'; })
11 | rpp::operators::filter(std::not_fn(&::isdigit))
12 | rpp::operators::map(&::toupper)
13 | rpp::operators::subscribe([](char v) { std::cout << v; });
14
15 return 0;
16}

Callers

nothing calls this directly

Calls 6

from_callableFunction · 0.85
repeatFunction · 0.85
take_whileFunction · 0.85
filterFunction · 0.85
mapFunction · 0.85
subscribeFunction · 0.85

Tested by

no test coverage detected