read.hpp File Reference
#include <atria/xform/maybe_reduced.hpp>
#include <atria/xform/skip.hpp>
#include <atria/xform/transducer_impl.hpp>
#include <atria/prelude/comp.hpp>
#include <functional>

Go to the source code of this file.

Namespaces

 atria
 C++ amazing templates and reusable implementations awesomeness.
 
 atria::xform
 Efficient and flexible C++ implementation of transducers.
 

Typedefs

template<typename T , typename InputStreamRefT >
using read_t = transducer_impl< detail::read_rf_gen< T >, InputStreamRefT >
 

Functions

template<typename T , typename InputStreamT >
auto read (InputStreamT &stream) -> read_t< T, std::reference_wrapper< InputStreamT > >
 Generator transducer that produces a sequence of values of type T read from the given stream using the operator >>. More...
 
template<typename T1 , typename T2 , typename... Ts, typename InputStreamT >
auto read (InputStreamT &stream) -> decltype(comp(read< T1 >(stream), read< T2 >(stream), read< Ts >(stream)...))
 
Fork me on GitHub