C++ Channel
Loading...
Searching...
No Matches
Classes | Functions
blocking_iterator.hpp File Reference
#include <cstddef>
#include <iterator>
Include dependency graph for blocking_iterator.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  msd::blocking_iterator< Channel >
 An iterator that blocks the current thread, waiting to fetch elements from the channel. More...
 
class  msd::blocking_writer_iterator< Channel >
 An output iterator pushes elements into a channel. Blocking until the channel is not full. More...
 

Functions

template<typename Channel >
blocking_writer_iterator< Channelmsd::back_inserter (Channel &chan)
 Creates a blocking iterator for the given channel.
 

Function Documentation

◆ back_inserter()

template<typename Channel >
blocking_writer_iterator< Channel > msd::back_inserter ( Channel chan)

Creates a blocking iterator for the given channel.

Template Parameters
ChannelType of channel being iterated.
Parameters
chanReference to the channel this iterator will iterate over.
Returns
A blocking iterator for the specified channel.