| 9 | namespace stream { |
| 10 | |
| 11 | Compose::Compose( |
| 12 | std::shared_ptr<Stream>& stream, |
| 13 | std::function<std::shared_ptr<Stream>(const Sample& sample)> op) |
| 14 | : stream_(stream), op_(op) {}; |
| 15 | |
| 16 | bool Compose::next_stream_() const { |
| 17 | auto sample = stream_->next(); |