Improve and rename `type_erased_stream` -> `any_stream_of`
janondrusek opened this issue · comments
Following the any_sender_of
pattern. There should be no need for a separate call to type_erase
in order to get a type_erased_stream
return type:
using namespace unifex;
// this should compile
any_stream_of<int> stream() {
return range_stream{0, 10};
}
Improvements to be made:
noexcept
correctness- reduce / eliminate
virtual
methods