repeat.hpp File Reference

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 >
using repeat_t = transducer_impl< detail::repeat_rf_gen, T >
 

Functions

template<typename ValueT >
constexpr auto repeat (ValueT &&r) -> repeat_t< estd::decay_t< ValueT > >
 Generator transducer produces the values passed as parameter infinitely. More...
 
template<typename ValueT , typename... ValueTs>
constexpr auto repeat (ValueT &&r, ValueTs &&...rs) -> decltype(comp(repeat(std::forward< ValueT >(r)), repeat(std::forward< ValueTs >(rs))...))
 
template<typename IntegralT , typename... ValueTs>
constexpr auto repeatn (IntegralT &&n, ValueTs &&...rs) -> decltype(comp(repeat(std::forward< ValueTs >(rs)...), take(std::forward< IntegralT >(n))))
 Generator transducer produces the values passed as parameter up to n times. More...
 
Fork me on GitHub