You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://gitter.im/Reactive-Extensions/RxCpp?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[](https://gitter.im/Reactive-Extensions/RxCpp?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[](http://kirkshoop.github.io/async/rxcpp/c++/2015/07/07/rxcpp_-_parsing_bytes_to_lines_of_text.html)
21
21
22
22
```cpp
23
-
24
23
#include"rxcpp/rx.hpp"
25
24
usingnamespacerxcpp;
26
25
usingnamespacerxcpp::sources;
@@ -31,41 +30,42 @@ using namespace rxcpp::util;
31
30
#include <random>
32
31
using namespace std;
33
32
34
-
//using rxcpp::operators::sum;
35
-
36
33
int main()
37
34
{
38
35
random_device rd; // non-deterministic generator
39
36
mt19937 gen(rd());
40
37
uniform_int_distribution<> dist(4, 18);
41
38
42
-
// produce byte stream that contains lines of text
39
+
// for testing purposes, produce byte stream that from lines of text
Copy file name to clipboardexpand all lines: Rx/v2/src/rxcpp/operators/rx-concat_map.hpp
+14-1
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ struct concat_traits {
45
45
46
46
static_assert(!std::is_same<decltype(result_check<source_value_type, collection_value_type, result_selector_type>(0)), tag_not_valid>::value, "concat_map ResultSelector must be a function with the signature concat_map::value_type(concat_map::source_value_type, concat_map::collection_value_type)");
Copy file name to clipboardexpand all lines: Rx/v2/src/rxcpp/operators/rx-flat_map.hpp
+15-3
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ struct flat_map_traits {
30
30
31
31
static_assert(!std::is_same<decltype(collection_check<source_value_type, collection_selector_type>(0)), tag_not_valid>::value, "flat_map CollectionSelector must be a function with the signature observable(flat_map::source_value_type)");
static_assert(is_observable<collection_type>::value, "flat_map CollectionSelector must return an observable");
36
36
@@ -43,7 +43,7 @@ struct flat_map_traits {
43
43
44
44
static_assert(!std::is_same<decltype(result_check<source_value_type, collection_value_type, result_selector_type>(0)), tag_not_valid>::value, "flat_map ResultSelector must be a function with the signature flat_map::value_type(flat_map::source_value_type, flat_map::collection_value_type)");
0 commit comments